如何使用 OpenSSL 获取 TLS 证书的域名 (SAN)
使用以下命令从任何 SSL 证书文件(此示例中为 cert.pem)以人类可读形式提取 X509 主题备用名称:
openssl_show_san.sh
openssl x509 -in cert.pem -noout -text | grep "Subject Alternative Name" --after=1示例输出:
openssl_san_example.txt
X509v3 Subject Alternative Name:
DNS:*.techoverflow.net, DNS:techoverflow.netCheck out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow