For VirtualCenter Server, the certificate supplied with VC is rui.crt and is avaialbe under C:\Documents and Settings\All Users\Application Data\VMware\VMware VirutalCenter\SSL\
Copy the certificates from the server to the certificate sub directory of the development workstation, using a unique filename for the certificate (assuming you are copying multiple default certificates from multiple Server systems, for example).
Next, Import the server certificate into the certificate store following the specific instructions for your programming language (Java, C#).
Navigate to the certificate sub directory. For example, on Windows:
cd c:\VMware-certs
For Java:
Use the Java keytool utility to import a certificate. The syntax is as follows:
keytool -import -file <certificate-filename> -alias <server-name> -keystore vmware.keystore
For example:
C:\VMware-Certs>keytool -import -file rui.crt -alias sdkpubs01 -keystore vmware.keystore
You will be prompted to create a password for the keystore you are creating:
Enter keystore password:
Create a password for the keystore by entering it at the prompt. The keystore utility displays the certificate
information at the console. For example:
Owner: OID.1.2.840.113549.1.9.2="1183400896,564d7761726520496e632e",
CN=sdkpubslab-01.vmware.com, EMAILADDRESS=ssl-certificates@vmware.com,
OU=VMware ESX Server Certificate, O="VMware, Inc.", L=Palo Alto,
ST=California, C=US Issuer:
OID.1.2.840.113549.1.9.2="1183400896,564d7761726520496e632e",
CN=sdkpubslab-01.vmware.com, EMAILADDRESS=ssl-certificates@vmware.com,
OU=VMware ESX Server Certificate, O="VMware, Inc.", L=Palo Alto,
ST=California, C=US Serial number: 0 Valid from: Mon Jul 02 11:28:17 PDT 2007
until: Mon Aug 31 11:28:17 PDT 2026
Certificate fingerprints:
MD5: . . .61:35:C0:C4
SHA1: 4C:...78:B2
At the end of the certificate information, a prompt displays a request for confirmation that the certificate
should be trusted:
Trust this certificate? [no]:
Type yes (and press <Enter>) to respond to the prompt and import the certificate into the vmware.store keystore.
The console displays:
Certificate was added to keystore
###############
The other option is to bypass the SSL,
e.g. add this one line just before or after you do the SSL keystore setup.
AxisProperties.setProperty("axis.socketSecureFactory", "
org.apache.axis.components.net.SunFakeTrustSocketFactory
");