[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] HTTP Builder - How to bypass invalid SSL certificates? (javax.net.ssl.SSLPeerUnver
From: Andrew Taylor <ataylor () redtoad ! ca>
Date: 2013-09-30 15:13:33
Message-ID: 5249951D.1030001 () redtoad ! ca
[Download RAW message or body]
On 9/29/2013 8:02 AM, Kendall Shaw wrote:
> I think you can also just add the certificate to a truststore. There is
> still a lot about SSL that I don't understand though.
>
> http://stackoverflow.com/questions/373295/digital-certificate-how-to-import-cer-file-in-to-truststore-file-using
>
> One way to get the certificate is to use firefox. Browse the URL look at
> the certificate in page info and export it to a file. Then import with
> keytool, as shown above.
>
> Kendall
With recent versions of Java (>= 7, I think) you can get the certificate
directly with the JDK's keytool. Run it like this:
keytool -printcert -sslserver myserver:443 -rfc > mycertificate.crt
--
Andrew Taylor
["smime.p7s" (application/pkcs7-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic