VMware

This Question is Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
1 2 3 4 Previous Next 58 Replies Last post: Mar 5, 2009 3:05 AM by Markisha1979  

Replace VMware Virtual Center SSL Certificate with Microsoft CA posted: Jun 7, 2007 9:05 AM

Click to view dmaster's profile Expert 457 posts since
Apr 27, 2006
Hello All,

I'm trying to replace the default SSL certificates from Virtual Center 2.01 with certificates from my own Microsoft Enterprise root CA..

I followed this howto..
http://edward.aractingi.net/blog/archives/virtualization/

in this article i'am missing how i get my rui.crt certificate ?
i am only able to get the rui.pem , rui.pfx and rui.key files

And this howto..
http://www.vmware.com/pdf/vi_vcserver_certificates.pdf
(I get the feeling that this document is not meant for a Microsoft CA just a local root CA)

in this article i get stuck on page 8 with the line..
openssl ca -out ruit.crt -config openssl.cnf -infiles mycsr.csr

error message
c:\Program files\openssl\openssl ca -out Webaccess.crt -config openssl.cfg -infiles Webaccess.csr
Using configuration from openssl.cfg
Loading 'screen' into random state - done
unable to load CA certificate
3360:error:0906D06C:PEM routines:PEM_read_bio:
no start line:.\crypto\pem\pem_lib.c:663:Expecting: CERTIFICATE

Was anybody able to replace this certificates ? Who can help me out ?
Click to view masaki's profile Virtuoso 1,814 posts since
Oct 26, 2005
the certificates are on the ESX HOST under /etc/vmware/ssl
Click to view RobMokkink's profile Expert 679 posts since
Jun 7, 2005
I install the openssl tools on the VC server and then do a request to the MS CA website.

When the certificate is in, i use a couple of openssl commands to export it to openssl format, so that VC can use it.

Currently i can't access the documents, when i am home i will post them here.
Click to view Tr0llk1ng's profile Novice 16 posts since
Feb 23, 2007
rui.crt as far as i know is just the Root Certificate to trust. you can check if you open the file on a windows client - it shows the root certificate. (you can also open the PFX with "testpassword" as password.. found this in the pdf above..)

basically i've the same problem afterwards, i've tried to replace the rui files but restart of the Virtual Center Server leads to an unexpected terminate of the service without information why.. Change back to original RUI and everything works fine.
also tested to change PFX password to testpassword or without password, now change..

anybody able to change the ssl certificate of just the web access?
Click to view RobMokkink's profile Expert 679 posts since
Jun 7, 2005
do this:

install openssl tools on VC server.

generate a new key:

openssl genrsa 1024 > rui.key

Create a signing request:
openssl req -new -key rui.key > rui.csr

Open the rui.csr with a text editor and select all the text.

Issue the certificate on the MS CA and download the cert file to rui.crt

Then convert the rui.crt to rui.pfx with the following command:

openssl pkcs12 -export -in rui.crt -inkey rui.key -name rui -passout
pass:testpassword -out rui.pfx

Click to view RobMokkink's profile Expert 679 posts since
Jun 7, 2005
just retested the procedure.

Make sure when you download the certitificate you select base64

When you didn't specified a password on the request you can just issue the following command to create a .pfx

openssl pkcs12 -export -in rui.crt -inkey rui.key -name rui -out rui.pfx
Click to view RobMokkink's profile Expert 679 posts since
Jun 7, 2005
hey dmaster you where a little bit faster then me ;-)
Click to view RobMokkink's profile Expert 679 posts since
Jun 7, 2005
i also replaced the certificates on the esx hosts.
Unfortunaly i doesn't like the new certs.
Can't get the servers in VC anymore.

strange that is didn't test this sooner?
Click to view RobMokkink's profile Expert 679 posts since
Jun 7, 2005
If you want to connect through the webinterface from a client etc.
Click to view RobMokkink's profile Expert 679 posts since
Jun 7, 2005
Today iw as rebuilding my test lab and i made a huge error in my post:

openssl pkcs12 -export -in rui.crt -inkey rui.key -name rui -out rui.pfx

Do this:

openssl pkcs12 -export -in rui.crt -inkey rui.key -name <your fqdn of the virtualcenter server> -out rui.pfx

This also fixed a lot of other issues.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities