InfraLab
OPENSSL_GENERATORLocal

OpenSSL コマンドジェネレータ

CSR 生成、自己署名証明書、秘密鍵、PKCS#12、証明書情報表示、チェーン検証、s_client、PEM DER 変換の OpenSSL コマンドを生成します。

OpenSSL コマンド

openssl genrsa -out example.com.key 2048

cat > example.com.ext <<'EOF'
subjectAltName=DNS:example.com,DNS:www.example.com
keyUsage=digitalSignature,keyEncipherment
extendedKeyUsage=serverAuth
EOF
openssl req -new -key example.com.key -out example.com.csr -subj "/C=JP/ST=Tokyo/O=Example Inc./OU=Infra/CN=example.com" -addext "subjectAltName=DNS:example.com,DNS:www.example.com"