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
LVL 1
lefty431Asked:
Who is Participating?
 
Brad HoweConnect With a Mentor DevOps ManagerCommented:
hi Lefty431,

Type "keytool -list"  and the contents of the entire keystore should be printed.

As well, could you provide the keytool commandline you are executing.

Cheers,
Hades666
0
 
Brad HoweDevOps ManagerCommented:
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
0
 
lefty431Author Commented:
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

0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
lefty431Author Commented:
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
0
 
lefty431Author Commented:
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"
0
 
lefty431Author Commented:

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...
0
 
lefty431Author Commented:



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:\>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.