我在enddate这个命令的输出中获得了额外的空间:
$ export IP=google.com; nc -z -w 3 $IP 443 && (echo | openssl s_client -
connect $IP:443 2>/dev/null | openssl x509 -noout -enddate)
Connection to google.com port 443 [tcp/https] succeeded!
notAfter=Apr 4 09:40:00 2018 GMT
Run Code Online (Sandbox Code Playgroud)
注意notAfter = line中4月到4月之间有两个空格.
我在笔记本电脑和Linux服务器上的两个版本就是这种情况:
$ openssl version
LibreSSL 2.2.7
$ openssl version
OpenSSL 1.0.1f 6 Jan 2014
Run Code Online (Sandbox Code Playgroud)
那个错误吗?我将尝试在https://github.com/openssl/openssl/issues中报告
开始了:
openssl ×1