Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure网站的Openssl证书_Azure_Ssl_Openssl - Fatal编程技术网

Azure网站的Openssl证书

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).

当我尝试将绑定添加到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).
下面是生成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

看起来这个问题已经得到了回答。