You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephenson Tim <Ti...@iie.qld.gov.au> on 2002/06/25 03:30:32 UTC

[httpclient] with ssl

hi all, 

i am using the http client to make a secure request and have no problem with doing so for test requests like https://www.verisign.com/ - thanks for the USING_HTTPS.txt and sample testcases. However when i make a request to my own site it fails with a message: 
	untrusted server cert chain 
which is completely reasonable as i do not have a large and popular certificate provider such as Verisign. 

My question is what do i have to register (and how do i do) it in order to get my client to work? 

thanks in advance, tim 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [httpclient] with ssl

Posted by Jeff Turner <je...@socialchange.net.au>.
On Tue, Jun 25, 2002 at 11:30:32AM +1000, Stephenson Tim wrote:
> hi all, 
> 
> i am using the http client to make a secure request and have no
> problem with doing so for test requests like https://www.verisign.com/
> - thanks for the USING_HTTPS.txt and sample testcases. However when i
> make a request to my own site it fails with a message: untrusted
> server cert chain which is completely reasonable as i do not have a
> large and popular certificate provider such as Verisign. 
> 
> My question is what do i have to register (and how do i do) it in
> order to get my client to work? 
> 
> thanks in advance, tim 

You need to create a 'truststore' and import the certificate of the
server you're hitting.

Attached is a little note I wrote for internal reference, dealing with
the case where the HTTPS client is a servlet (JSP). The links at the end
are probably the most useful in your case.

HTH,


--Jeff