我正在寻找一种从PHP连接到FTPS服务器的方法,我需要发送客户端证书。 我查看了相关问题,但他们没有回答这个问题:
如何使用ftp_ssl_connect的客户端证书 使用PHP和证书作为auth连接到FTPS
我现在使用ftp_ssl_connect连接,但我没有看到发送证书的方法。 是唯一可能重写代码并使用curl之类的东西吗? 还是有其他选择吗?
I'm looking for a way to connect to a FTPS server from PHP and I need to send a client certificate. I looked at the related questions, but they don't answer the question:
How to use a Client Certificate with ftp_ssl_connect Connecting to FTPS using PHP and certificate as auth
I now connect using ftp_ssl_connect but I don't see a way to send a certificate. Is the only possibility to rewrite the code and use something like curl? Or are there other options?
最满意答案
唯一的答案是使用CURL。 J Griffiths的答案: https : //stackoverflow.com/a/19497103/1738274让您了解如何解决此问题。
The only answer is to use CURL. The answer of J Griffiths: https://stackoverflow.com/a/19497103/1738274 gives you an idea how to fix this.
更多推荐
发布评论