1

我正在运行一个以 Centos 7 作为其操作系统的 vagrant box。我没有错误地安装了 blackfire,然后尝试从网络浏览器进行分析。它开始配置文件,但然后只是挂起挂起,从未完成。然后我在命令行中通过 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 机器)并且从未见过这个错误。我在网上也找不到太多关于此的内容。

4

1 回答 1

4

cURL 未发送 HTTP 请求,因为“对等证书已过期”。如建议的那样,您可以添加“--insecure”选项。

但似乎证书已更新。

于 2019-10-11T14:11:57.127 回答