[OT] SourceForge AddReleaseTask
Ernst de Haan
ernst.dehaan at nl.wanadoo.com
Thu Oct 2 07:13:23 PDT 2003
> See http://javaalmanac.com/egs/javax.net.ssl/GetCert.html
This doesn't seem to work for me:
java -cp ${CLASSPATH}:build/xins-common.jar
org.xins.tools.security.FetchCertificate sourceforge.net
Exception in thread "main" javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: Could not find trusted certificate
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at
org.xins.tools.security.FetchCertificate.main(FetchCertificate.java:42)
Caused by: java.security.cert.CertificateException: Could not find trusted
certificate
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
at
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6275)
at
com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6275)
... 7 more
See the attaches source code. That should do the trick, shouldn't it?
Ernst
More information about the freebsd-java
mailing list