OpenSSL::X509::CertificateError in activemerchant when using JRuby, works in MRI
--------------------------------------------------------------------------------
Key: JRUBY-5253
URL: http://jira.codehaus.org/browse/JRUBY-5253
Project: JRuby
Issue Type: Bug
Components: OpenSSL
Affects Versions: JRuby-OSSL 0.7.2, JRuby 1.5.6
Environment: OS X 10.6.5, jruby 1.5.6, jruby-openssl 0.7.2,
activermerchant 1.9.2
Reporter: Jeff Wang
Attachments: purchase.rb
I'm trying to use the activemerchant gem with my app to process credit card
payments. I keep running into this error when I try to connect to my gateway
server.
/Users/calculon0/jruby-1.5.6/lib/ruby/gems/1.8/gems/activemerchant-1.9.2/lib/active_merchant/common/connection.rb:83:in
`request': The remote server did not accept the provided SSL certificate
(ActiveMerchant::ClientCertificateError)
from
/Users/calculon0/jruby-1.5.6/lib/ruby/gems/1.8/gems/activemerchant-1.9.2/lib/active_merchant/common/connection.rb:137:in
`retry_exceptions'
from
/Users/calculon0/jruby-1.5.6/lib/ruby/gems/1.8/gems/activemerchant-1.9.2/lib/active_merchant/common/connection.rb:54:in
`request'
from
/Users/calculon0/jruby-1.5.6/lib/ruby/gems/1.8/gems/activemerchant-1.9.2/lib/active_merchant/common/posts_data.rb:46:in
`raw_ssl_request'
from
/Users/calculon0/jruby-1.5.6/lib/ruby/gems/1.8/gems/activemerchant-1.9.2/lib/active_merchant/common/posts_data.rb:30:in
`ssl_request'
from
/Users/calculon0/jruby-1.5.6/lib/ruby/gems/1.8/gems/activemerchant-1.9.2/lib/active_merchant/common/posts_data.rb:26:in
`ssl_post'
from
/Users/calculon0/jruby-1.5.6/lib/ruby/gems/1.8/gems/activemerchant-1.9.2/lib/active_merchant/billing/gateways/linkpoint.rb:251:in
`commit'
from
/Users/calculon0/jruby-1.5.6/lib/ruby/gems/1.8/gems/activemerchant-1.9.2/lib/active_merchant/billing/gateways/linkpoint.rb:205:in
`authorize' from purchase.rb:22
I tried the same code with standard Ruby 1.9 and everything worked. I was able
to connect to the server and process payments. I've attached a sample file to
show what I'm doing. If I run the file under jruby, I get errors. If I run it
with normal ruby, everything works fine and I get the correct response from the
server.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email