On 9 Dec 2008, at 13:33, Caius Durling wrote:

> Might not be the issue, but when I ran into the HTTP library causing  
> issues with SSL (it was a self-signed cert) I had to do the following:
>
> http = Net::HTTP.new( url.host, url.port )
> http.use_ssl = true
> http.verify_mode = OpenSSL::SSL::VERIFY_NONE
> # then get/post stuff with http


Hi Caius

I've had to do that myself in the past some time.  Actually stumbled  
across a post by Ola saying not to use net/https[1] in this  
situation.  The problem is that JRuby doesn't appear to be able to use  
the bundled cert file.

I don't actually need SSL for the code I'm working on.  But it's  
getting loaded by JRuby and causing things to break, so the only thing  
I can do in the mean time is remove the HTTPClient cert file.

Cheers
Ashley


[1] http://olabini.com/blog/2008/08/ruby-https-web-calls/


-- 
http://www.patchspace.co.uk/
http://aviewfromafar.net/




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to