z0ltan
Enthusiast
Enthusiast

Any method to directly obtain ESX Server certificates and generate keystore using Java and VI SDK 2.5?

Jump to solution

Hi,

I am developing a product where I need to connect to the ESX Server using my product and also invoke certain APIs on the server. Is there anyway I can obtain and generate keystores for the Server certificates (to use HTTPS) from my Java code? I do not want the customer to be inconvenienced by the whole "obtain certificate, use 'keytool' and store in the mentioned directory" dance. My product will run in an environment where there might be dozens of ESX Servers, hence the requirement to have the whole functionality in my code.

Any pointers?

Regards,

Timmy.






Bwahahahahahahahahahahahahaha!

Bwahahahahahahahahahahahahaha!
0 Kudos
1 Solution

Accepted Solutions
akutz
Hot Shot
Hot Shot

You could always ignore the SSL mis-match errors with the following line:

System.setProperty("axis.socketSecureFactory", "org.apache.axis.components.net.SunFakeTrustSocketFactory");

View solution in original post

0 Kudos
3 Replies
akutz
Hot Shot
Hot Shot

You could always ignore the SSL mis-match errors with the following line:

System.setProperty("axis.socketSecureFactory", "org.apache.axis.components.net.SunFakeTrustSocketFactory");

View solution in original post

0 Kudos
z0ltan
Enthusiast
Enthusiast

Thanks a ton akutz!

Just a bit of a query more - does this just ignore certificates or does it turn-off SSL completely? ( I am guessing it's the former!).

Regards,

Timmy.






Bwahahahahahahahahahahahahaha!

Bwahahahahahahahahahahahahaha!
0 Kudos
akutz
Hot Shot
Hot Shot

Per the java docs:

Hook for Axis sender, allowing unsigned server certs

The Apache WIKI has some good information as well.

0 Kudos