I tried to set up SSL connection using this guide:
when i finished and opened a web page to my website, i'm getting the certificate error.
i tested a certificate through whynopadlock.com and i'm getting two errors:
Your SSL certificate appears to be self signed.
Browsers will display an error whenever someone attempts to visit your site.
Your SSL certificate does not match your domain name!
Domain: ark-suite.com
Command: certbot --apache -d ark-suite.com
Web server version: Server version: Apache/2.4.6 (CentOS)
Operating system: Centos 7
My hosting provider, if applicable, is: Digitalocean
I can login to a root shell on my machine.
I'm not using a control panel to manage my site.
The version of my certbot is 0.34.2
I tried configuring it with different settings, when i was using a certificate with both domain names i had the same error.
I also made a mistake, i deleted old certificates so i don't get confused, and currently i have only one certificate:
[root@server] # certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found the following certs:
Certificate Name: ark-suite.com-0001
Domains: ark-suite.com
Expiry Date: 2019-09-23 11:43:50+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/ark-suite.com-0001/fullchain.pem
Private Key Path: /etc/letsencrypt/live/ark-suite.com-0001/privkey.pem
Currently there's no 'wrong' vhosts so i don't get to the wrong directory or so:
If your server uses a self signed certificate, your paths or your vHost configuration is wrong. Or you didn't restart your server. Or you have an orphaned process -> reboot your server.
So this is the first problem you should fix.
You have both dns entries. And it's a main domain. So you should have both dns entries and a certificate with both domain names (it's easier to have such a certificate instead of two certificates and two vHosts per port).