Resolution: Not A Bug
Affects Version/s: JRuby-OpenSSL 0.7
Fix Version/s: None
Number of attachments :
You can reproduce this issue with the following code:
On MRI (1.8.7) I get this:
OpenURI::HTTPError: 403 Forbidden
Which is the expected error in this case. The SSL certificate is verified and the anticipated response code is returned from Amazon's servers.
On JRuby 1.5.1 I get this:
OpenSSL::SSL::SSLError: certificate verify failed
This error seems to occur regardless of what version of jruby-openssl is installed. Perhaps open-uri is doing some custom stuff here which is breaking?