Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2003 16:16:41 +0200
From:      Ernst de Haan <ernst.dehaan@nl.wanadoo.com>
To:        mriem@win.tue.nl, <java@freebsd.org>
Subject:   Re: [OT] SourceForge AddReleaseTask
Message-ID:  <200310021616.41179.ernst.dehaan@nl.wanadoo.com>
In-Reply-To: <200310021613.23463.ernst.dehaan@nl.wanadoo.com>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAgjJ/YbsydEiM+B2MArS8eMKAAAAQAAAAmRe7nyNk+U6cRKG/hkYHKgEAAAAA@win.tue.nl> <200310021613.23463.ernst.dehaan@nl.wanadoo.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Argh. The attachement got swallowed by java@ again. It's available here:

http://people.freebsd.org/~znerd/FetchCertificate.java

Ernst

On donderdag 2 oktober 2003 16:13, Ernst de Haan wrote:
> >  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(Dash
>oA6275) at
> com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Dash
>oA6275) ... 7 more
>
> See the attaches source code. That should do the trick, shouldn't it?
>
> Ernst



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200310021616.41179.ernst.dehaan>