我正在运行一个流浪盒子,它的操作系统是Centos 7。我毫无错误地安装了blackfire,然后尝试从web浏览器进行分析。它开始配置文件,但然后就挂了,挂了,再也没有完成。然后,我在命令行中通过curl进行了尝试,得到了以下错误:
$ blackfire curl https://gitlist.demo.blackfire.io/
Profiling: [####------------------------------------] 1/10
Error while running command: exit status 60
Use the option '--ignore-exit-status' to ignore command exit status
* About to connect() to gitlist.demo.blackfire.io port 443 (#0)
* Trying 54.76.137.79...
* Connected to gitlist.demo.blackfire.io (54.76.137.79) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* Server certificate:
* subject: CN=gitlist.demo.blackfire.io
* start date: Jul 07 14:09:16 2019 GMT
* expire date: Oct 05 14:09:16 2019 GMT
* common name: gitlist.demo.blackfire.io
* issuer: CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US
* NSS error -8181 (SEC_ERROR_EXPIRED_CERTIFICATE)
* Peer's Certificate has expired.
* Closing connection 0
curl: (60) Peer's Certificate has expired.
More details here: http://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 bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.有人能给我解释一下这个错误是什么吗?我已经在其他项目中成功地使用了Blackfire (尽管那些是Ubuntu盒),并且从未见过这个错误。我在网上也找不到太多关于这方面的信息。
发布于 2019-10-11 22:11:57
cURL没有发送HTTP请求,因为“对等证书已过期”。正如所建议的,您可以添加"--insecure“选项。
但是看起来证书已经被续订了。
https://stackoverflow.com/questions/58331378
复制相似问题