我创建了一个带有以下内容的自签名证书(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://时我被拒绝连接。
有什么建议吗?我错过了一步吗?