小编Rap*_*OLO的帖子

旧的 php 容器显示:curl: (60) SSL 证书问题:证书已过期

一两天后,我的旧 php 容器 (dockerhub php:5.4-apache) 无法再使用curl。这是在此容器内运行curl 时的日志。

$> docker run --rm -ti php:5.6-apache bash
$> curl -X POST https://xxxxx.com
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the …
Run Code Online (Sandbox Code Playgroud)

php docker cacerts

9
推荐指数
1
解决办法
7632
查看次数

标签 统计

cacerts ×1

docker ×1

php ×1