我有多个域的 SSL 证书。
我像这样配置了 apache:
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/satsure
ServerName satsure.co
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /home/ubuntu/cert/cert.crt
SSLCertificateKeyFile /home/ubuntu/cert/statlogic.key
SSLCertificateChainFile /home/ubuntu/cert/gd_bundle-g2-g1.crt
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
但是我在启动服务器时遇到了这样的错误。
[ssl:emerg] [pid 11124:tid 139745708714944] AH02565: Certificate and private key ip-172-31-2-51.ap-south-1.compute.internal:443:0 from /home/ubuntu/cert/cert.crt and /home/ubuntu/cert/statlogic.key do not match
但我确信我正确创建了密钥,并且是同一个密钥
。有人可以帮忙吗?