I recently ran into an issue where a customer had a wildcard SSL certificate that they wanted to use to secure their VMware View Connection Servers and Security Servers. However, the certificate did not include the private key. After a bit of digging, we found the appropriate private key, but now the question was, “How do we get the private key imported into the Windows certificate store with the wildcard cert? The answer here is that we need to combine the cert and the key into a PKCS #12 private information store, which we can import into the Windows certificate store. Here’s how:
Combine an SSL Certificate with Its Private Key
- Download and install OpenSSL for Windows.
- Open a command prompt window and change directory to your OpenSSL binaries (for me, this is c:\openssl-win64\bin) – I also copied my cert and private key into this directory, which is not a requirement but makes it easier.
- Run “openssl pkcs12 -export -inkey Keyname.key -in Certname.cer -out Certwithkey.p12”. Enter an export password and verify it.
You should now see your .P12 file in the bin folder, which can be used for Horizon View 5.3.