|
SSL Certificates in VMware View - Importing a Certificate to the Key Store |
|
|
|
|
Written by Tom Hirt
|
|
Monday, 02 March 2009 15:19 |
|
Page 5 of 6
Importing a Certificate to the Key Store
Once you have your new certificate in PKCS7 format, we will continue with the keytool to import the certificate into View's keystore:
- Copy the text file containing the CA issued key to the directory that contains your keystore. In our example, this is:
'C:\Program Files\VMware\VMware View\Server\sslgateway\'
- From the command prompt, enter the following replacing with the file name of your certificate:
'keytool -import -keystore keys.p12 -storetype pkcs12 -keyalg "RSA" -trustcacerts -file '
| C:\Program Files\VMware\VMware View\Server\sslgateway\conf>keytool -import -keystore keys.p12 -storetype pkcs12 -keyalg "RSA" -trustcacerts -file thwat_test_key.p7 |
- You will be asked to provide the password to your keystore:
| Enter keystore password: MY_PASSWORD |
- After providing the correct password, you will see an informational screen similar to the below with details about your certificate and the issuing CA:
Top-level certificate in reply: Owner: CN=Thawte Test CA Root, OU=TEST TEST TEST, O=Thawte Certification, ST=FOR TESTING PURPOSES ONLY, C=ZA Issuer: CN=Thawte Test CA Root, OU=TEST TEST TEST, O=Thawte Certification, ST=FOR TESTING PURPOSES ONLY, C=ZA Serial number: 0 Valid from: Wed Jul 31 20:00:00 EDT 1996 until: Thu Dec 31 16:59:59 EST 2020 Certificate fingerprints: MD5: 5E:E0:0E:1D:17:B7:CA:A5:7D:36:D6:02:DF:4D:26:A4 SHA1: 39:C6:9D:27:AF:DC:EB:47:D6:33:36:6A:B2:05:F1:47:A9:B4:DA:EA
|
- If you used a test certificate, as we did in the example above, you will receive an additional prompt that the issuer is not trusted. Answer this question with a 'yes' or 'y':
| ... is not trusted. Install reply anyway? [no]: y |
- If everything worked, you should see a message indicating that the certificate was added to the keystore:
| Certificate reply was installed in keystore |
|
|
Last Updated on Tuesday, 02 June 2009 11:16 |