ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Vidaver <>
Subject Re: Couldn't find trusted certificate using get https
Date Thu, 05 Jun 2003 23:25:22 GMT
         It turns out that one way is to:

         1) Get the site's certificate

         With IE, bring up the page with the URL,
         Go to File->Properties.
         Click on Certificates button on lower right.
         Click on the details tab.
         Click on copy to file.
         Hit next through the dialog until you save it to a file (e.g 

         2) Add it to the java certificate keystore
           $ keytool -keystore <jdk home>/jre/lib/security/cacerts -import 
-alias mycert -file ./mycert.ce

         Then if you get a message like :

         HTTPS hostname wrong

         it means that the name of the host in the certificate is an alias 
for the one in the get target's src.  In the IE certificate window under 
details, if you click on issuer, you can find out the real hostname in the 

         Failed approaches :

         I tried to tell ant about a separate keystore using and the ANT_OPS environment variable, but I just 
kept getting the original error about a missing certificate.


At 06:47 PM 5/21/2003 -0400, you wrote:
>  I'm trying to use the get command with https, but I get an error like this :
> : 
> Couldn't find trusted certificate
>  Forgive my ignorance - where should the trusted certificate live?  How 
> do I tell ant about it?  Is this a system property?  How do I get the 
> certificate?  Netscape walks me through the process and I can access the site.
>  Any hints would be most appreciated - thanks!
>  Gordon Vidaver
>Gordon Vidaver                  BBN Technologies
>                Office 6/323
>617 873-3558                    10 Moulton St.
>617 873-2616 (fax)              Cambridge, MA 02138
>866-322-9311 (toll free)
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Gordon Vidaver                  BBN Technologies                Office 6/323
617 873-3558                    10 Moulton St.
617 873-2616 (fax)              Cambridge, MA 02138
866-322-9311 (toll free)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message