From owner-freebsd-java@FreeBSD.ORG Thu Oct 2 07:13:23 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35C4F16A4B3 for ; Thu, 2 Oct 2003 07:13:23 -0700 (PDT) Received: from smtp1.euronet.nl (smtp1.euronet.nl [194.134.35.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11C7243F75 for ; Thu, 2 Oct 2003 07:13:22 -0700 (PDT) (envelope-from ernst.dehaan@nl.wanadoo.com) Received: from zaphod.euronet.nl (zaphod.euronet.nl [194.134.168.213]) by smtp1.euronet.nl (Postfix) with ESMTP id 63443679A6; Thu, 2 Oct 2003 16:13:19 +0200 (MEST) From: Ernst de Haan Organization: Wanadoo Nederland B.V. To: mriem@win.tue.nl, Date: Thu, 2 Oct 2003 16:13:23 +0200 User-Agent: KMail/1.5.2 References: In-Reply-To: X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_DKDf/8VLx/F4T9v" Message-Id: <200310021613.23463.ernst.dehaan@nl.wanadoo.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: [OT] SourceForge AddReleaseTask X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2003 14:13:23 -0000 --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--