Answer the question
In order to leave comments, you need to log in
Why is the old SSL certificate displayed in the browser?
For the test, I installed a Let's Encrypt certificate. I decided to buy a paid one from Comodo, demolished all the files from the old one, uploaded everything from the new one, double-checked it 10 times.
The config is as follows:
<VirtualHost domain.com:80>
ServerName domain.com
Redirect / https://domain.com
</VirtualHost>
<IfModule mod_ssl.c>
Listen 443
<VirtualHost domain.com:443>
ServerName domain.com
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/domain_com.crt
SSLCertificateKeyFile /etc/apache2/ssl/privateKey.key
SSLCertificateChainFile /etc/apache2/ssl/domain_com.ca-bundle
#SSLCACertificateFile /etc/apache2/ssl/domain_com.ca-bundle
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
CustomLog ${APACHE_LOG_DIR}/ssl.log "%a \"%{SSL_PROTOCOL}x\""
ErrorLog /var/log/apache2/ssl_engine.log
LogLevel debug
<Directory "/var/www/html">
AllowOverride All
allow from all
Options +Indexes
</Directory>
</VirtualHost>
openssl s_client -connect 1.1.1.1:443 -showcerts
openssl s_client -connect domain.com:443 -showcerts
openssl s_client -connect localhost:443 -showcerts
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question