2 ms·
Java uses a keystore (actually - being Java - you can set a property to tell it which keystore to use). Importing a new certificate is documented here: http://
by nl 14y ago
Java uses a keystore (actually - being Java - you can set a property to tell it which keystore to use).
Importing a new certificate is documented here: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security10.html http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security10.htm...
The verification of the certificate is delegated to a TrustManager[1]. Certificate paths can be checked[2] and the TrustManager is flexible enough to support a large variety of verification scenarios[3].
[1] http://docs.oracle.com/javase/1.4.2/docs/api/javax/net/ssl/TrustManager.html http://docs.oracle.com/javase/1.4.2/docs/api/javax/net/ssl/T...
[2] http://www.exampledepot.com/egs/java.security.cert/ValidCertPath.html http://www.exampledepot.com/egs/java.security.cert/ValidCert...
[3] http://stackoverflow.com/questions/11681474/how-can-i-trust-a-specific-self-sign-certificates-not-trust-all?lq=1 http://stackoverflow.com/questions/11681474/how-can-i-trust-...