https://crt.sh/?q=deepmatrix.net
ran certonly
Centos 6 64-bit Apache with Zpanel
Root Access.
I know whats wrong but I don’t know how to fix it…
I’m not in the server very often.
I used certonly and went the manual way.
The certificates have installed and all seems good there.
When I restarted apache I got an warning. and my sites says
Your connection is not secure.
(Ive read many posts nothing I found seems to fit my issue)
Did a search found this command to repeat what the warning is.
httpd -t -D DUMP_VHOSTS
[Thu Nov 09 12:45:44 2017] [warn] default VirtualHost overlap on port 443, the first has precedence
VirtualHost configuration:
wildcard NameVirtualHosts and default servers:
default:443 localhost.localdomain (/etc/httpd/conf.d/ssl.conf:74)
*:443 deepmatrix.net (/etc/zpanel/configs/apache/zpanel-ssl-vhost.conf:5)
and this command
grep -ir 443 /etc/httpd/conf*
/etc/httpd/conf.d/ssl.conf:Listen 443
/etc/httpd/conf.d/ssl.conf:
/etc/httpd/conf.d/ssl.conf:#ServerName www.example.com:443
The first that has precedence was default on the server install or I may have turned it on.
example.com localhost.localdomain
httpd.conf has an include directive for Zpanel:
Include /etc/zpanel/configs/apache/httpd.conf
Then… /etc/zpanel/configs/apache/httpd.conf has an include directive for the
automatically generated vhosts file (generated and can not be edited)
I added a custom include for letsEncrypt.
###################################################################
Now we include the generic VHOST configuration file that holds all the ZPanel user hosted vhost data
Include /etc/zpanel/configs/apache/httpd-vhosts.conf
#CUSTOM SSL LetsEncrypt CONFIGURATION
Include /etc/zpanel/configs/apache/zpanel-ssl-vhost.conf
###################################################################
my custom ssl include contained more domains. I removed all them and have left one.
I made this file by various examples in this forum
########################################################################
#Custom include for SSL LetsEncrypt
#ONLY EDIT THIS FILE
DOMAIN: deepmatrix.net
<virtualhost *:443>
ServerName deepmatrix.net
ServerAlias deepmatrix.net www.deepmatrix.net
ServerAdmin
DocumentRoot “/var/zpanel/hostdata/zadmin/public_html/deepmatrix_net”
SSLEngine on
SSLCertificateFile "/etc/letsencrypt/live/deepmatrix.net/cert.pem"
SSLCertificateChainFile "/etc/letsencrypt/live/deepmatrix.net/chain.pem"
SSLCertificateKeyFile “/etc/letsencrypt/live/deepmatrix.net/privkey.pem”
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-CM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256$
Redirect permanent / https://deepmatrix.net/
#End domain deepmatrix.net
##########################################################################
How do I remove the default ssl so letEncrypt it holds precedence?