Azure网站的Openssl证书
当我尝试将绑定添加到ssl证书时,出现了一个错误 错误:Azure网站的Openssl证书,azure,ssl,openssl,Azure,Ssl,Openssl,当我尝试将绑定添加到ssl证书时,出现了一个错误 错误: Failed to add SSL binding. The certificate with thumbprint '877EC1DA24CD9D4713FD4107A83AC0EE5A4654E4' is invalid for SSL. The Enhanced Key Usage must be present and must contain Server Authentication (1.3.6.1.5.5.7.3.1).
Failed to add SSL binding. The certificate with thumbprint '877EC1DA24CD9D4713FD4107A83AC0EE5A4654E4' is invalid for SSL. The Enhanced Key Usage must be present and must contain Server Authentication (1.3.6.1.5.5.7.3.1).
下面是生成ssl的方法
第一步
Create file domain.rs.txt
步骤2
[req]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[ dn ]
C=DK
ST=Jutland
L=Haderslev
O=Justlearn ApS
OU=Haderslev
emailAddress=team@justlearn.com
CN = www.justlearn.rs
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = justlearn.rs
DNS.2 = www.justlearn.rs
步骤3
openssl req -new -sha256 -nodes -out domain.rs.csr -newkey rsa:2048 -keyout domain.rs.key -config domain.rs.txt
步骤4
openssl x509 -req -days 365 -in domain.rs.csr -signkey domain.rs.key -out domain.rs.crt
步骤5
openssl pkcs12 -export -in domain.rs.crt -inkey domain.rs.key -out mycert.pfx
看起来这个问题已经得到了回答。