VMware Cloud Community
sorinandruseac
Contributor
Contributor

Issue with having own private keys and certificate for Cloud Director 10.3.2

Hi all,

Following this article 

Import Private Keys and CA-Signed SSL Certificates to the VMware Cloud Director Appliance

In step No5 where it says to import the certificate it fails with:

"Error executing command: Private key could not be read with the provided password"

Well is true that the private key is unencrypted, but we have no option to either encrypt the private key or to specify not to try to decrypt it.

 

Any chance we can use our own private key/certificate pair with Cloud Director 10.3.2? In 9.7 we could do this with no problem?

 

Thanks,

 

3 Replies
Alex_Lavrinovic
Contributor
Contributor

Same here...

Have you found the solution? 

0 Kudos
dstote_ot
Contributor
Contributor

I was having same issue was driving me nuts.

If your cert does not have a password in that version you need to use --key-password ""

The quotes make a lot of difference! This has been changed in other versions and does not seem to be needed anymore.

xBytez
Enthusiast
Enthusiast

Hi everyone,

I ran into this same issue. I had to turn my private key into a PKCS#8 encoded private key with -outform PEM using OpenSSL.

Example:

vim user.http.key-rsa

openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in user.http.key-rsa -out user.http.key

chown vcloud:vcloud user.http.key