Via acme.sh / DNS challenge i have got LE certs and my linux server is running fine in my home network guarded by a pfsense firewall.
Renewals have all gone fine. However recently i have tried to change the apache vhost port to 8443 ( opened the port up via NAT in pfsense too ) from 7443
It's probably due to a lacking SSLEngine directive. SSLEngine is probably set somewhere in one of the port 7443 VirtualHosts and I guess it's inherited to other similar VirtualHosts, but not to your new VirtualHost with a new port, where Apache doesn't have a previous related VirtualHost to fall back to.
Pls note that i have no issue running on 7443. Also i have used an online ssl checker
( Check SSL Certificate ) to check my setup and everything was green. I just want to shift it to 8443 from 7443
The new vhost is just a copy of the old vhost with the port changed.
# Enable/Disable SSL for this virtual host
SSLEngine on
# Force only HTTPS for the next 30 days
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains;"
# Per vhost certificates
SSLCertificateFile /etc/apache2/ssl_certs/mycustomdomain.com.cer
SSLCertificateKeyFile /etc/apache2/ssl_certs/mycustomdomain.com.key
SSLCertificateChainFile /etc/apache2/ssl_certs/mycustomdomain.com.cer
Thank you Osiris ....
Your hint paid off... I removed all the other vhosts except the new one with new port and it worked immediately ..so one of the vhosts was problematic .... I will hunt that down ...
Thanks once again ! BIG BIG THANK YOU !
And to the rest who took time off to reply as well. Thanks !