2023年12月7日Memo私钥带有密码Linux自签 TLS 证书 创建私钥和证书 # 私钥带有密码 openssl req -newkey rsa:2048 -keyout domain.key -out domain.csr # 私钥不带有密码 openssl req -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr 注意,过程中的 Common Name 需要填写(FQDN)。 创建自签名证书 openssl x509 -signkey domain.key -in domain.csr -req -days 365 -out domain.crt 参考&更多:Creating a Self-Signed Certificate With OpenSSL | Baeldung
私钥带有密码
自签 TLS 证书
创建私钥和证书
# 私钥带有密码 openssl req -newkey rsa:2048 -keyout domain.key -out domain.csr # 私钥不带有密码 openssl req -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr注意,过程中的
Common Name需要填写(FQDN)。创建自签名证书
openssl x509 -signkey domain.key -in domain.csr -req -days 365 -out domain.crt参考&更多:Creating a Self-Signed Certificate With OpenSSL | Baeldung