📌  相关文章
📜  如何从letsencrypt获取本地的免费ssl证书 - 任何代码示例

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

代码示例1
openssl req -x509 -out localhost.crt -keyout localhost.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")