Date: Thu, 2 Oct 2003 15:07:09 +0200 From: Ernst de Haan <znerd@FreeBSD.org> To: java@freebsd.org Subject: [OT] SourceForge AddReleaseTask Message-ID: <200310021507.09939.znerd@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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: <taskdef name="sfaddrelease" classname="org.xins.util.ant.sourceforge.AddReleaseTask" classpath="xins-common.jar:commons-net.jar:commons-httpclient.jar" /> <sfaddrelease user="znerd" password="${password}" file="build/xins-${version}.tar.gz" group="71598" package="71219" release="${version}" /> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310021507.09939.znerd>