はじめに

手元の証明書ファイルから Subject Alternative Name (SAN) を確認するための備呆録。

やり方

openssl x509 -noout -text -in /path/to/cert.pem | grep -A1 "Subject Alternative Name"

環境

% sw_vers
ProductName:		macOS
ProductVersion:		26.3
BuildVersion:		25D125

% openssl version  
OpenSSL 3.6.1 27 Jan 2026 (Library: OpenSSL 3.6.1 27 Jan 2026)