【问题标题】:Where i can find the default system certificate used by PHP by deafult?我在哪里可以找到 PHP 默认使用的默认系统证书?
【发布时间】:2018-11-21 14:10:28
【问题描述】:

在 php.ini 中,我指定使用我的域的 cafile。 这使得来自 PHP 的电子邮件有效,而且我在加载我的域时也没有问题。

当我尝试使用 composer 时遇到问题,似乎 PHP 正在使用无法获得验证的域证书。

如果我从 PHP 的 php.ini 电子邮件中删除 openssl ca.file,则 PHP 停止工作,但 composer 工作正常。

当我删除 openssl 行而不是将证书内容添加到我的域证书时,也许我需要找到 PHP 使用的系统证书在哪里,这应该可以解决问题。

知道在哪里可以找到此证书吗? 您认为这会解决问题吗?

https://github.com/composer/composer/issues/7797#issuecomment-440585828

感谢您的帮助。

【问题讨论】:

  • 还没试过update-ca-certificates?如果您坚持解决方法,您可以在 php 启动时设置单个 ini 选项。 php -dopenssl.cafile=… composer.phar …

标签: php ssl openssl


【解决方案1】:

解决了 https://github.com/composer/composer/issues/7797#issuecomment-440680491

在 centos 中的位置似乎有点不同 How to add Certificate Authority in centos7?

我在 etc/pki/ca-trust/extracted/openssl 上找到了它

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多