带有证书的PHP FTPS(PHP FTPS with Certificate)

编程入门 行业动态 更新时间:2024-10-27 22:30:13
带有证书的PHP FTPS(PHP FTPS with Certificate)

我正在寻找一种从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.

更多推荐

本文发布于:2023-07-09 15:00:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1087169.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:证书   PHP   Certificate   FTPS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!