我正在尝试设置 SSL SVN 服务器,当我尝试远程结帐时出现错误 Server certificate
was missing commonName attribute in subject name
我做了一些谷歌搜索,据我所知,我需要openss.cnf使用如下commonName属性添加我正在访问的 URL 的 IP 地址。我这样做了,但我仍然收到错误消息。
commonName = xx.xxx.xx.xx
commonName_max = 64
Run Code Online (Sandbox Code Playgroud)
这听起来像是 CommonName 与 SSL 证书不匹配。您的 SSL 证书中的 CN 是否与您的服务器匹配?
您可以运行以下命令来查看 SSL 证书:
openssl x509 -noout -text -in ssl.crt
编辑
要生成蛇油证书,首先生成密钥:
openssl genrsa -out host.key 1024
现在生成证书:
openssl req -new -key host.key -x509 -days 3650 -out host.crt
openssl 将提示您输入信息:
Country Name (2 letter code) [AU]:
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:
Run Code Online (Sandbox Code Playgroud)
通用名称是您指定服务器主机名的地方。
| 归档时间: |
|
| 查看次数: |
10227 次 |
| 最近记录: |