Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2003 16:13:23 +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:  <200310021613.23463.ernst.dehaan@nl.wanadoo.com>
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAgjJ/YbsydEiM+B2MArS8eMKAAAAQAAAAmRe7nyNk+U6cRKG/hkYHKgEAAAAA@win.tue.nl>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAgjJ/YbsydEiM+B2MArS8eMKAAAAQAAAAmRe7nyNk+U6cRKG/hkYHKgEAAAAA@win.tue.nl>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--Boundary-00=_DKDf/8VLx/F4T9v
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

>  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

--Boundary-00=_DKDf/8VLx/F4T9v--



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