要检查google.com的证书是否已被撤销,我尝试了以下命令:
curl https://www.google.com --cacert GeoTrust_Global_CA.pem --crlfile gtglobal.pem -v
,但出现了可怕的“ SSL证书问题”错误:
* About to connect() to www.google.com port 443 (#0)
* Trying 81.24.29.91... connected
* successfully set certificate verify locations:
* CAfile: GeoTrust_Global_CA.pem
CApath: /etc/ssl/certs
* successfully load CRL file:
* CRLfile: gtglobal.pem
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS alert, Server hello (2):
* SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
* Closing connection #0
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
我猜这个错误是不正确的,因为Google应该有一个有效的证书。
您知道我如何发出可以正确执行此操作的curl命令吗?
更多细节
如果您想知道为什么我在curl命令中使用了这些特定文件(GeoTrust_Global_CA.pem和gtglobal.pem),这就是我的处理方式:
- 我首先查看了CA为https://www.google.com颁发的证书。原来是GeoTrust GlobalCA。
- 我从这里下载了GeoTrust Global CA根证书(这是GeoTrust_Global_CA.pem文件)。
- 我从此处(这是gtglobal.pem文件)下载了相应的CRL(证书吊销列表)。