将第一个数据证书导入ColdFusion [英] Importing First Data certificate into ColdFusion

查看:350
本文介绍了将第一个数据证书导入ColdFusion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从第一个数据导入证书到我的ColdFusion 9设置使用keytool如此:

I've tried to import the certificate from First Data into my ColdFusion 9 setup using the keytool as so:

keytool -importcert -keystore MYCF9Dir\runtime\jre\lib\security\cacerts -trustcacerts -alias firstdata -file FirstData.pem

导入似乎工作,但是当我通过任何ColdFusion函数或标记访问WSDL时,它抛出一个I / O异常:接收致命警报:handshake_failure。这告诉我它不能访问网站的证书,或者找不到它。

The import seems to work, however when I access the WSDL via any ColdFusion function or tag it throws a "I/O Exception: Received fatal alert: handshake_failure". Which tells me it can't access the site with the certificates that it has, or can't find it.

那么,我是否正确导入证书?如果我是,我还能用ColdFusion访问这个WSDL?

So, am I importing the certificate correctly? And if I am, how else can I access this WSDL with ColdFusion?

推荐答案

我有一个类似的问题,面临同样的问题,这是我如何解决我的。我有一个.pem文件,这是显示它已成功导入ColdFusion中的Cacert密钥库,但远程API(服务器)我试图打不认识到某些原因的证书。所以我首先使用OpenSSL将.pem证书转换为PKCS12格式文件 - 此链接有助于: http://cc.in2p3.fr/docenligne/84/en#0.4 (位于底部)。然后我使用CFHTTP CF标签如下:

I had a similar issue and just in case someone is facing the same issue, this is how I solved mine. I had a .pem file and this was showing it has imported successfully in the Cacert keystore within ColdFusion but the remote API(server) I was trying to hit was not recognising the certificate for some reasons. So I first of all converted the .pem certificate into a PKCS12 format file using OpenSSL - this link helped:http://cc.in2p3.fr/docenligne/84/en#0.4 (at the bottom). I then used the CFHTTP CF tag like below:

        <cfhttp
        url="https://urlToAPI"
        method="POST"
        clientCert="path to the file (.p12)"
        clientCertPassword="password"
        result="result">             

这样做了。我希望它能帮助别人。

This did it for me. I hope it helps someone.

这篇关于将第一个数据证书导入ColdFusion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆