Hi Guys,
I am trying to get working credit card processing with Authorize.net. From what I see in the debug output [ AIMPaymentServices.java:371:INFO ] Could not complete Authorize.Net transaction: org.ofbiz.base.util.HttpClientException: IO Error processing request (java.security.cert.CertificateException: No trusted certificate found) The problem is in certificate. I have added to ofbiz keystore the ssl certificate I have ( from trusted authority) and it is the one is used when I call https://ofbiz.host.com:8443 . Which certificate 'AIMPaymentServices.java' expects to operate with? Thanks for any help. |
I had to add my cert to ofbiztrust.jks keystore to get it working.
|
I download the SSL certificate from the https://secure.authorize.net and import into the keystore /usr/lib/jvm/java-6-sun/jre/lib/security/cacerts and /framework/base/config/ofbizssl.jks. still i get the error
2012-06-26 17:23:24,949 (http-0.0.0.0-8443-3) [ EntityEcaRule.java:120:INFO ] Running Entity ECA Service: changeOrderPaymentStatus, triggered by rule on Entity: OrderPaymentPreference
2012-06-26 17:23:26,881 (http-0.0.0.0-8443-3) [ AIMPaymentServices.java:352:INFO ]
---- exception report ----------------------------------------------------------
Could not complete Authorize.Net transaction: org.ofbiz.base.util.HttpClientException: IO Error processing request (java.security.cert.CertificateException: No trusted certificate found)
Exception: org.ofbiz.base.util.HttpClientException
Message: IO Error processing request (java.security.cert.CertificateException: No trusted certificate found)
---- cause ---------------------------------------------------------------------
Exception: javax.net.ssl.SSLHandshakeException
Message: java.security.cert.CertificateException: No trusted certificate found
---- cause ---------------------------------------------------------------------
Exception: java.security.cert.CertificateException
Message: No trusted certificate found
---- stack trace ---------------------------------------------------------------
java.security.cert.CertificateException: No trusted certificate found
org.ofbiz.base.util.MultiTrustManager.checkServerTrusted(MultiTrustManager.java:70)
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1198)
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:893)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149)
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
org.ofbiz.base.util.HttpClient.sendHttpRequestStream(HttpClient.java:467)
org.ofbiz.base.util.HttpClient.sendHttpRequestStream(HttpClient.java:387)
org.ofbiz.base.util.HttpClient.sendHttpRequest(HttpClient.java:329)
org.ofbiz.base.util.HttpClient.post(HttpClient.java:243)
org.ofbiz.accounting.thirdparty.authorizedotnet.AIMPaymentServices.processCard(AIMPaymentServices.java:335)
org.ofbiz.accounting.thirdparty.authorizedotnet.AIMPaymentServices.ccAuth(AIMPaymentServices.java:98)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
org.ofbiz.accounting.payment.PaymentGatewayServices.authPayment(PaymentGatewayServices.java:555)
org.ofbiz.accounting.payment.PaymentGatewayServices.authOrderPaymentPreference(PaymentGatewayServices.java:188)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
org.ofbiz.accounting.payment.PaymentGatewayServices.authOrderPayments(PaymentGatewayServices.java:395)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:1032)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:931)
org.ofbiz.order.shoppingcart.CheckOutEvents.processPayment(CheckOutEvents.java:569)
org.ofbiz.order.shoppingcart.CheckOutEvents.processPayment(CheckOutEvents.java:533)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:92)
org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:78)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:534)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:534)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:339)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------------------------
|
Free forum by Nabble | Edit this page |