📜  生成 crt 和密钥 openssl - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:34.947000             🧑  作者: Mango

代码示例1
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
  -keyout example.key -out example.crt -subj "/CN=example.com" \
  -addext "subjectAltName=DNS:example.com,DNS:www.example.net,IP:10.0.0.1"