ColdFusion CFHTTP I/O Exception: peer not authenticated - even after adding certs to Keystore

后端 未结 8 2086
情深已故
情深已故 2020-12-19 07:01

I\'m currently working with a payment processor. I can browse to the payment URL from our server, so it\'s not a firewall issue, but when I try to use CFHTTP I get a I/O Exc

8条回答
  •  一整个雨季
    2020-12-19 07:36

    I am using JRun. After trying a lot of different things I came across a snippet of information that was applicable in my setup. I had configured an (1)HTTPS SSLService with my own truststore file. This caused the piece of information in the following link to become important.

    http://helpx.adobe.com/coldfusion/kb/import-certificates-certificate-stores-coldfusion.html

    Note: If you are using JRun as the underlying J2EE server (either the Server Configuration or the Multiserver/J2EE with JRun Configuration) and have enabled SSL for the internal JRun Web server (JWS), you will need to import the certificate to the truststore defined in the jrun.xml file for the Secure JWS rather than the JRE key store. By default, the file is called "trustStore" and is typically located under jrun_root/lib for the Multiserver/J2EE with JRun configuration or cf_root/runtime/lib for the ColdFusion Server configuration. You use the same Java keytool to manage the trustStore.

    Here is the excerpt from my jrun.xml file:

    
      8301
      /app/jrun4/cert/cfusion.jks
      /app/jrun4/cert/truststore.jks
      SSLService
      *
      jrun.servlet.http.JRunSSLServerSocketFactory
      *
      cfadmin
      false
    
    

    Once I imported the certificate into this truststore (/app/jrun4/cert/truststore.jks) it worked after restarting ColdFusion.


    (1) http://helpx.adobe.com/legacy/kb/ssl-jrun-web-server-connector.html

提交回复
热议问题