This process does NOT work for VMWare View 5.1 only 5.0
Here are the steps involved to change the SSL certificates from the default VMware Self-Signed certificate to one signed by either your internal CA or a public CA. This tutorial works for both the View Connection Server or Security Server services.
- Navigate to the following directory via command prompt (if running server 2008, make sure you run command prompt as an administrator):
- C:\Program Files\VMware\VMware View\Server\jre\bin
- Execute the following command to generate a new Java Keystore:
- keytool -genkeypair -keyalg "RSA" -keysize 2048 -keystore keys.jks -storepass secret
- Note: This will ask for your first and last name, type in your FQDN here (I.e. viewserver.mydomain.com); also hit RETURN to use the same password as your keystore password when you are done.
- keytool -genkeypair -keyalg "RSA" -keysize 2048 -keystore keys.jks -storepass secret
- Execute the following command to generate a CSR:
- keytool -certreq -file certificate.csr -keystore keys.jks -storepass secret
- Sign the certificate.csr file that was just generated with your certificate authority (GoDaddy, Verisign, Internal CA, etc.)
- Copy the signed .cer or .crt file that you just received from your CA to the same keytool directory
- Copy any root or intermediate public certificates to the same keytool direcotry
- Execute the following commands for each of your root and intermediate certificates
- Root CA Example
- keytool -importcert -keystore keys.jks -storepass secret -alias rootCA -file rootCA.cer
- Intermediate CA Example
- keytool -importcert -keystore keys.jks -storepass secret -alias intermediateCA -file intermediateCA.cer
- Root CA Example
- Execute the following command to import your public certificate for your certificate.csr file:
- keytool -importcert -keystore keys.jks -storepass secret -keyalg "RSA" -trustcacerts -file certificate.cer
- Next, we need to configure a View Connection Server Instance or Security Server to use the new certificate
- Move the keys.jks file that we just created (C:\Program Files\VMware\VMware View\Server\jre\bin\keys.jks) to the following directory:
- c:\Program Files\VMware\VMware View\Server\sslgateway\conf\keys.jks
- Next, we need to add the keyfile, keypass, and storetype properties to the locked.properties file
- If the locked.properties file does not already exist,go ahead and create a new file with notepad.
- Once the locked.properties file is open, ensure the following lines are in it:
- keyfile=keys.jks
- keypass=secret
- storetype=jks
- Move the keys.jks file that we just created (C:\Program Files\VMware\VMware View\Server\jre\bin\keys.jks) to the following directory:
- Restart the View Connection Server service or Security Server service for your changes to take effect.
- Once you have verified the new certificate works, delete the following files from C:\Program Files\VMware\VMware View\Server\jre\bin
- certificate.cer
- rootCA.cer
- intermediateCA.cer
- certficate.csr