From owner-freebsd-java@FreeBSD.ORG Thu Oct 2 06:27:27 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 995D816A4B3 for ; Thu, 2 Oct 2003 06:27:27 -0700 (PDT) Received: from svbcf02.win.tue.nl (svbcf02.win.tue.nl [131.155.71.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6BF043F75 for ; Thu, 2 Oct 2003 06:27:26 -0700 (PDT) (envelope-from mriem@win.tue.nl) Received: from master (dyn361 [131.155.71.47]) by svbcf02.win.tue.nl (Postfix) with ESMTP id 106ED25AE1 for ; Thu, 2 Oct 2003 15:27:26 +0200 (MET DST) From: "Manfred Riem" To: Date: Thu, 2 Oct 2003 15:27:25 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <200310021507.09939.znerd@FreeBSD.org> Subject: RE: [OT] SourceForge AddReleaseTask X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mriem@win.tue.nl List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2003 13:27:27 -0000 Hi Ernst, You can do 2 things. Either just disable certificate validation in Java. See http://javaalmanac.com/egs/javax.net.ssl/TrustAll.html Or adding the certificate See http://javaalmanac.com/egs/javax.net.ssl/GetCert.html See http://javaalmanac.com/egs/java.security/AddCert.html Regards, Manfred. -----Original Message----- From: owner-freebsd-java@freebsd.org [mailto:owner-freebsd-java@freebsd.org] On Behalf Of Ernst de Haan Sent: Thursday, October 02, 2003 3:07 PM To: java@freebsd.org Subject: [OT] SourceForge AddReleaseTask Offtopic: A question about HTTPS / Java: I'm writing an Ant task to automate the SourceForge 'Add release' procedure. For this I'm using Jakarta Commons Net and HttpClient. The task can be used in an Ant build file as follows: The login is done using HTTPS. The Commons HttpClient library supports this. But apparently, the server is not trusted, because I get a javax.net.ssl.SSLHandshakeException. The message is: "java.security.cert.CertificateException: Could not find trusted certificate" Apparently, I need to get the certificate of sourceforge.net and store it in a keystore. Perhaps I should use 'keytool -import' for this, in some way. Questions: * How do I get the certificate of sourceforge.net? * How do I store it in a file so that Java will accept it? Ernst _______________________________________________ freebsd-java@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-java To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"