自签名证书连接被拒绝

时间:2018-07-31 14:32:47

标签: apache ssl

我创建了一个带有以下内容的自签名证书(apache2): openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mycompany.key -out mycompany.crt

我将文件添加到/etc/apache2/vhosts.d/mycompany.conf中并添加:

VirtualHost 10.100.0.107:443 (I have the <> before and after this line)
SSLCertificateFile /etc/apache2/certs/mycompany.crt
SSLCertificateKeyFile /etc/apache2/certs/mycompany.key
#SSLCertificateChainFile //home/mweiner/certs/certs-5/DigiCertCA.crt

重新启动apache2,但是尝试https://时我被拒绝连接。

有什么建议吗?我错过了一步吗?

0 个答案:

没有答案