【发布时间】:2011-10-06 17:12:31
【问题描述】:
我必须从 PHP 向具有自签名证书的安全 https 服务器发出请求。我在 cURL 中有一个可用的命令行,但在将其转换为正确且有效的 PHP 选项时遇到了很多问题。
有效的 cURL 命令是这样的:
curl --cacert cert.pem
--key cert.key
--cert cert.crt
--header 'content-type: text/xml'
-X POST
--data @ftit-request.xml https://serverip/dip/DipWebservice > outputfile
谁能给我一些关于如何在 PHP 中正确使用它的提示?
【问题讨论】:
标签: php curl ssl-certificate ssl