automatically import certificate from HTTPS server

Hello,

Is it possible automatically import certificate from HTTPS/LDAPS server?

I wrote simple java client to connect to LDAP server via SSL, the only problem here that certificate should be manually downloaded from server and manualy imported to JRE keystore using keytool ...

Thank you,

Vlad

[324 byte] By [vladdevcona] at [2007-9-28 4:38:50]
# 1
There is an article explaining how to substitute your own trust manager into JSSE framework. http://www.javaworld.com/javatips/jw-javatip115_p.html
amelina at 2007-7-8 0:12:28 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2
you can write your own trust manager, and then get a copy of the certificate. You can then cache the certificate for future use.
javababy1a at 2007-7-8 0:12:28 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...