Link to home
Start Free TrialLog in
Avatar of lefty431
lefty431

asked on

Loading an SSL cert on Tomcat

I have a server.. Windows 2008 that is a VMware View server.  It is running a verson of TomCat/Apache.
I need to install an SSL on it so that users who go to the Vmware Manager site don't get the URL error about the server not being safe.

I am an IIS guy and not sure how to do this with Apache.

Any help would be great..  Step by step directions would be wonderful, but I will take what I can get.
Thanks
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Hi Lefty431,

Take a look at this article. This creates a self-assigned certificate.
   http://www.tcpdump.com/kb/virtualization/virtual-desktop/installing-a-ssl-certificate-on-vmware-view/intro.html

This tutorial is for a purchased SSL certificate.
   http://searchvirtualdesktop.techtarget.com/generic/0,295582,sid194_gci1380626,00.html

Cheers,
Hades666
Avatar of lefty431
lefty431

ASKER

thanks for the links. the second link is the one that I need.  however, I may have things hacked up from before seeing this link.
How do I delete any keys that were created?  

seems now when I create a key
I get
keytool error: Java.io.ioexception: failed to dycrypt safe contents entry: javax.crypto.badpaddingexception: given final block not propery padded

ASKER CERTIFIED SOLUTION
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
this is what I typed first...
keytool -genkey -keyalg "RSA" –keystore keys.p12 -storetype pkcs12 -validity 360

then
keytool -certreq -keyalg "RSA" –file mycertrequest.csr -keystore keys.p12 -storetype pkcs12 -storepass vmware
following these directions

http://searchvirtualdesktop.techtarget.com/generic/0,295582,sid194_gci1380626,00.html
Microsoft Windows [Version 6.0.6002]

C:\>keytool -list
Enter keystore password:  changeit

Keystore type: jks
Keystore provider: SUN

Your keystore contains 1 entry

mykey, Apr 27, 2010, keyEntry,
Certificate fingerprint (MD5): 7C:21:C6:B4:5D:80:A1:F5:B6:5F:D1:0A:CF:5F:87:E9


so now I will try to delete "mykey"

C:\>keytool -list
Enter keystore password:  changeit

Keystore type: jks
Keystore provider: SUN

Your keystore contains 0 entries


Now I will try to create it..   but when I do, it gives me an error.  will try anyway and post here...



C:\>keytool -genkey -keyalg "RSA" -keystore keys.p12 -storetype pkcs12 -validity
 360
Enter keystore password:  changeit
keytool error: java.lang.Exception: Key pair not generated, alias <mykey> alread
y exists

C:\>