Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Curl 如何列出替代证书使用者名称_Curl - Fatal编程技术网

Curl 如何列出替代证书使用者名称

Curl 如何列出替代证书使用者名称,curl,Curl,我得到这个错误: curl https://a.b.c.de/ SSL: no alternative certificate subject name matches target host name 'a.b.c.de' 如何列出a.b.c.de的所有有效名称 AFAIK这些是CN加上“替代证书主体名称” 我想知道哪些名字是有效的 使用curl的解决方案会很好,但也可以使用任何linux工具。在用户ottomeister的帮助下,我找到了一个获取主题替代名称的解决方案 命令: openss

我得到这个错误:

curl https://a.b.c.de/
SSL: no alternative certificate subject name matches target host name 'a.b.c.de'
如何列出a.b.c.de的所有有效名称

AFAIK这些是CN加上“替代证书主体名称”

我想知道哪些名字是有效的


使用curl的解决方案会很好,但也可以使用任何linux工具。

在用户ottomeister的帮助下,我找到了一个获取主题替代名称的解决方案

命令:

openssl s_client -connect a.b.c.de:443 </dev/null 2>/dev/null | \
    openssl x509 -inform pem -text | grep -A1 "Subject Alternative Name"

你需要使用curl吗?@Rob I更新了问题。AFAICT
curl
没有显示服务器证书的选项。要查看服务器证书,我将使用
openssl s_客户端-连接a.b.c.de:443
 X509v3 Subject Alternative Name: 
     email:info@a.b.c.de, DNS:other.c.de, IP Address:93.184.216.34