Your connection to this site is not secured

My domain is: mms.geotech-co.ir

I ran this commands:
certbot --apache
and select the number aliased to my domain name

It produced this output:
Successfully deployed certificate for mms.geotech-co.ir to /etc/httpd/sites-available/mms.geotech-co.ir-le-ssl.conf
Congratulations! You have successfully enabled HTTPS on https://mms.geotech-co.ir

My web server is: Apache/2.4.6

The operating system my web server runs on is: Centos7

I can login to a root shell on my machine

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is: certbot 1.18.0

My problem is:
I had another domains in my server, every domain works fine, but my problem is this domain: mms.geo-tech.ir

  • domains have same config on port 80
  • I've checked my certificate path and its ok
  • I ran this command:
    certbot certificates
  • and the output is:
    Certificate Name: mms.geotech-co.ir-0001
    Serial Number: ** I hide this serial numver **
    Key Type: RSA
    Domains: mms.geotech-co.ir
    Expiry Date: 2021-12-06 09:04:28+00:00 (VALID: 89 days)
    Certificate Path: /etc/letsencrypt/live/mms.geotech-co.ir-0001/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/mms.geotech-co.ir-0001/privkey.pem
  • my virtualhost configuration for ssl is:
    SSLCertificateFile /etc/letsencrypt/live/mms.geotech-co.ir-0001/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/mms.geotech-co.ir-0001/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateChainFile /etc/letsencrypt/live/mms.geotech-co.ir-0001/chain.pem
  • "apachectl configtest" returns Ok
  • I've restarted my apache and my server many times
  • I've checked simlinks path in /etc/letsencrypt/live/mms.geotech-co.ir-0001
  • but my problem still exist, unsecure domin certificate warning
2 Likes

Welcome to the Let's Encrypt Community :slightly_smiling_face:

It appears that either the VirtualHost for mms.geotech-co.ir has a self-signed "snakeoil" certificate installed or the wrong VirtualHost (likely the default one) with such a certificate installed is responding for mms.geotech-co.ir.

https://crt.sh/?q=mms.geotech-co.ir

https://decoder.link/sslchecker/mms.geotech-co.ir/443

What are the outputs of:

sudo apachectl -S
sudo ls -lRa /etc/httpd
sudo ls -lRa /etc/letsencrypt
sudo certbot certificates

Please put 3 backticks above and below each output, like this:

```
output
```

3 Likes

I agree, this output will help us better understand, and is critical to resolving, this problem:

3 Likes
VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server esb.geotech-co.ir (/etc/httpd/sites-enabled/esb.geotech-co.ir.conf:1)
         port 80 namevhost esb.geotech-co.ir (/etc/httpd/sites-enabled/esb.geotech-co.ir.conf:1)
                 alias esb.geotech-co.ir
         port 80 namevhost mms.geotech-co.ir (/etc/httpd/sites-enabled/mms.geotech-co.ir.conf:1)
                 alias mms.geotech-co.ir
*:443                  is a NameVirtualHost
         default server mms.geotech-co.ir (/etc/httpd/conf.d/ssl.conf:58)
         port 443 namevhost esb.geotech-co.ir (/etc/httpd/sites-available/esb.geotech-co.ir-le-ssl.conf:2)
                 alias esb.geotech-co.ir
         port 443 namevhost mms.geotech-co.ir (/etc/httpd/conf.d/ssl.conf:58)
         port 443 namevhost mms.geotech-co.ir (/etc/httpd/sites-available/mms.geotech-co.ir-le-ssl.conf:2)
                 alias mms.geotech-co.ir
ServerRoot: "/etc/httpd"
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex authdigest-opaque: using_defaults
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
PidFile: "/run/httpd/httpd.pid"
Define: _RH_HAS_HTTPPROTOCOLOPTIONS
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="apache" id=48
Group: name="apache" id=48
/etc/httpd:
total 28
drwxr-xr-x   7 root root 4096 Sep  7 06:08 .
drwxr-xr-x. 95 root root 4096 Sep  6 17:33 ..
drwxr-xr-x   2 root root 4096 Sep  7 06:08 conf
drwxr-xr-x   2 root root 4096 Sep  6 17:27 conf.d
drwxr-xr-x   2 root root 4096 Sep  6 17:18 conf.modules.d
lrwxrwxrwx   1 root root   19 Sep  6 15:21 logs -> ../../var/log/httpd
lrwxrwxrwx   1 root root   29 Sep  6 15:21 modules -> ../../usr/lib64/httpd/modules
lrwxrwxrwx   1 root root   10 Sep  6 15:21 run -> /run/httpd
drwxr-xr-x   2 root root 4096 Sep  7 06:08 sites-available
drwxr-xr-x   2 root root 4096 Sep  6 15:30 sites-enabled

/etc/httpd/conf:
total 36
drwxr-xr-x 2 root root  4096 Sep  7 06:08 .
drwxr-xr-x 7 root root  4096 Sep  7 06:08 ..
-rw-r--r-- 1 root root 12041 Sep  7 06:08 httpd.conf
-rw-r--r-- 1 root root 13064 Nov 16  2020 magic

/etc/httpd/conf.d:
total 40
drwxr-xr-x 2 root root 4096 Sep  6 17:27 .
drwxr-xr-x 7 root root 4096 Sep  7 06:08 ..
-rw-r--r-- 1 root root 2926 Nov 16  2020 autoindex.conf
-rw-r--r-- 1 root root 1252 Aug 24 14:05 php.conf
-rw-r--r-- 1 root root  366 Nov 16  2020 README
-rw-r--r-- 1 root root 9610 Sep  7 03:59 ssl.conf
-rw-r--r-- 1 root root 1252 Nov 16  2020 userdir.conf
-rw-r--r-- 1 root root  824 Nov 16  2020 welcome.conf

/etc/httpd/conf.modules.d:
total 44
drwxr-xr-x 2 root root 4096 Sep  6 17:18 .
drwxr-xr-x 7 root root 4096 Sep  7 06:08 ..
-rw-r--r-- 1 root root 3739 Nov 16  2020 00-base.conf
-rw-r--r-- 1 root root  139 Nov 16  2020 00-dav.conf
-rw-r--r-- 1 root root   41 Nov 16  2020 00-lua.conf
-rw-r--r-- 1 root root  742 Nov 16  2020 00-mpm.conf
-rw-r--r-- 1 root root  957 Nov 16  2020 00-proxy.conf
-rw-r--r-- 1 root root   41 Nov 16  2020 00-ssl.conf
-rw-r--r-- 1 root root   88 Nov 16  2020 00-systemd.conf
-rw-r--r-- 1 root root  451 Nov 16  2020 01-cgi.conf
-rw-r--r-- 1 root root  423 Aug 24 14:05 15-php.conf

/etc/httpd/sites-available:
total 40
drwxr-xr-x 2 root root 4096 Sep  7 06:08 .
drwxr-xr-x 7 root root 4096 Sep  7 06:08 ..
-rw-r--r-- 1 root root  368 Sep  6 17:25 esb.geotech-co.ir.conf
-rw-r--r-- 1 root root  549 Sep  7 04:49 esb.geotech-co.ir-le-ssl.conf
-rw-r--r-- 1 root root  353 Sep  7 21:26 mms.geotech-co.ir.conf
-rw-r--r-- 1 root root  672 Sep  7 21:27 mms.geotech-co.ir-le-ssl.conf

/etc/httpd/sites-enabled:
total 8
drwxr-xr-x 2 root root 4096 Sep  6 15:30 .
drwxr-xr-x 7 root root 4096 Sep  7 06:08 ..
lrwxrwxrwx 1 root root   49 Sep  6 15:28 esb.geotech-co.ir.conf -> /etc/httpd/sites-available/esb.geotech-co.ir.conf
lrwxrwxrwx 1 root root   49 Sep  6 15:29 mms.geotech-co.ir.conf -> /etc/httpd/sites-available/mms.geotech-co.ir.conf

/etc/letsencrypt:
total 44
drwxr-xr-x   9 root root 4096 Sep  7 21:29 .
drwxr-xr-x. 95 root root 4096 Sep  6 17:33 ..
drwx------   4 root root 4096 Jan  4  2021 accounts
drwx------   7 root root 4096 Sep  7 02:58 archive
drwxr-xr-x   2 root root 4096 Sep  7 06:07 csr
drwx------   2 root root 4096 Sep  7 06:07 keys
drwx------   7 root root 4096 Sep  7 02:58 live
-rw-r--r--   1 root root  924 Jan  4  2021 options-ssl-apache.conf
drwxr-xr-x   2 root root 4096 Sep  7 06:14 renewal
drwxr-xr-x   5 root root 4096 Jan  4  2021 renewal-hooks
-rw-r--r--   1 root root   64 Jan  4  2021 .updated-options-ssl-apache-conf-digest.txt

/etc/letsencrypt/accounts:
total 16
drwx------ 4 root root 4096 Jan  4  2021 .
drwxr-xr-x 9 root root 4096 Sep  7 21:29 ..
drwx------ 3 root root 4096 Jan  4  2021 acme-staging-v02.api.letsencrypt.org
drwx------ 3 root root 4096 Jan  4  2021 acme-v02.api.letsencrypt.org

/etc/letsencrypt/accounts/acme-staging-v02.api.letsencrypt.org:
total 12
drwx------ 3 root root 4096 Jan  4  2021 .
drwx------ 4 root root 4096 Jan  4  2021 ..
drwx------ 3 root root 4096 Jan  4  2021 directory

/etc/letsencrypt/accounts/acme-staging-v02.api.letsencrypt.org/directory:
total 12
drwx------ 3 root root 4096 Jan  4  2021 .
drwx------ 3 root root 4096 Jan  4  2021 ..
drwx------ 2 root root 4096 Jan  4  2021 6f9af097cec62d605a671c54ecfe828a

/etc/letsencrypt/accounts/acme-staging-v02.api.letsencrypt.org/directory/6f9af097cec62d605a671c54ecfe828a:
total 20
drwx------ 2 root root 4096 Jan  4  2021 .
drwx------ 3 root root 4096 Jan  4  2021 ..
-rw-r--r-- 1 root root   81 Jan  4  2021 meta.json
-r-------- 1 root root 1632 Jan  4  2021 private_key.json
-rw-r--r-- 1 root root   86 Jan  4  2021 regr.json

/etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org:
total 12
drwx------ 3 root root 4096 Jan  4  2021 .
drwx------ 4 root root 4096 Jan  4  2021 ..
drwx------ 3 root root 4096 Jan  4  2021 directory

/etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory:
total 12
drwx------ 3 root root 4096 Jan  4  2021 .
drwx------ 3 root root 4096 Jan  4  2021 ..
drwx------ 2 root root 4096 Jan  4  2021 d149a806e3c86d14824253e84d29b461

/etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/d149a806e3c86d14824253e84d29b461:
total 20
drwx------ 2 root root 4096 Jan  4  2021 .
drwx------ 3 root root 4096 Jan  4  2021 ..
-rw-r--r-- 1 root root   81 Jan  4  2021 meta.json
-r-------- 1 root root 1632 Jan  4  2021 private_key.json
-rw-r--r-- 1 root root   79 Jan  4  2021 regr.json

/etc/letsencrypt/archive:
total 28
drwx------ 7 root root 4096 Sep  7 02:58 .
drwxr-xr-x 9 root root 4096 Sep  7 21:29 ..
drwxr-xr-x 2 root root 4096 Sep  6 08:34 esb.geotech-co.ir
drwxr-xr-x 2 root root 4096 Sep  6 17:25 esb.geotech-co.ir-0001
drwxr-xr-x 2 root root 4096 Sep  7 06:04 mms.geotech-co.ir-0001

/etc/letsencrypt/archive/esb.geotech-co.ir:
total 120
drwxr-xr-x 2 root root 4096 Sep  6 08:34 .
drwx------ 7 root root 4096 Sep  7 02:58 ..
-rw-r--r-- 1 root root 1879 Jan  4  2021 cert1.pem
-rw-r--r-- 1 root root 1891 Mar  5  2021 cert2.pem
-rw-r--r-- 1 root root 1891 May  4 16:30 cert3.pem
-rw-r--r-- 1 root root 1891 Jul  3 17:12 cert4.pem
-rw-r--r-- 1 root root 1887 Sep  1 21:52 cert5.pem
-rw-r--r-- 1 root root 1891 Sep  6 08:34 cert6.pem
-rw-r--r-- 1 root root 1586 Jan  4  2021 chain1.pem
-rw-r--r-- 1 root root 1586 Mar  5  2021 chain2.pem
-rw-r--r-- 1 root root 3749 May  4 16:30 chain3.pem
-rw-r--r-- 1 root root 3749 Jul  3 17:12 chain4.pem
-rw-r--r-- 1 root root 3749 Sep  1 21:52 chain5.pem
-rw-r--r-- 1 root root 3749 Sep  6 08:34 chain6.pem
-rw-r--r-- 1 root root 3465 Jan  4  2021 fullchain1.pem
-rw-r--r-- 1 root root 3477 Mar  5  2021 fullchain2.pem
-rw-r--r-- 1 root root 5640 May  4 16:30 fullchain3.pem
-rw-r--r-- 1 root root 5640 Jul  3 17:12 fullchain4.pem
-rw-r--r-- 1 root root 5636 Sep  1 21:52 fullchain5.pem
-rw-r--r-- 1 root root 5640 Sep  6 08:34 fullchain6.pem
-rw------- 1 root root 1704 Jan  4  2021 privkey1.pem
-rw------- 1 root root 1708 Mar  5  2021 privkey2.pem
-rw------- 1 root root 1704 May  4 16:30 privkey3.pem
-rw------- 1 root root 1704 Jul  3 17:12 privkey4.pem
-rw------- 1 root root 1708 Sep  1 21:52 privkey5.pem
-rw------- 1 root root 1704 Sep  6 08:34 privkey6.pem

/etc/letsencrypt/archive/esb.geotech-co.ir-0001:
total 100
drwxr-xr-x 2 root root 4096 Sep  6 17:25 .
drwx------ 7 root root 4096 Sep  7 02:58 ..
-rw-r--r-- 1 root root 1846 Mar  1  2021 cert1.pem
-rw-r--r-- 1 root root 1850 Apr 30 06:58 cert2.pem
-rw-r--r-- 1 root root 1846 Jun 29 17:18 cert3.pem
-rw-r--r-- 1 root root 1850 Aug 28 21:51 cert4.pem
-rw-r--r-- 1 root root 1850 Sep  6 17:25 cert5.pem
-rw-r--r-- 1 root root 1586 Mar  1  2021 chain1.pem
-rw-r--r-- 1 root root 1586 Apr 30 06:58 chain2.pem
-rw-r--r-- 1 root root 3749 Jun 29 17:18 chain3.pem
-rw-r--r-- 1 root root 3749 Aug 28 21:51 chain4.pem
-rw-r--r-- 1 root root 3749 Sep  6 17:25 chain5.pem
-rw-r--r-- 1 root root 3432 Mar  1  2021 fullchain1.pem
-rw-r--r-- 1 root root 3436 Apr 30 06:58 fullchain2.pem
-rw-r--r-- 1 root root 5595 Jun 29 17:18 fullchain3.pem
-rw-r--r-- 1 root root 5599 Aug 28 21:51 fullchain4.pem
-rw-r--r-- 1 root root 5599 Sep  6 17:25 fullchain5.pem
-rw------- 1 root root 1704 Mar  1  2021 privkey1.pem
-rw------- 1 root root 1704 Apr 30 06:58 privkey2.pem
-rw------- 1 root root 1704 Jun 29 17:18 privkey3.pem
-rw------- 1 root root 1704 Aug 28 21:51 privkey4.pem
-rw------- 1 root root 1704 Sep  6 17:25 privkey5.pem

/etc/letsencrypt/archive/mms.geotech-co.ir-0001:
total 48
drwxr-xr-x 2 root root 4096 Sep  7 06:04 .
drwx------ 7 root root 4096 Sep  7 02:58 ..
-rw-r--r-- 1 root root 1850 Sep  7 02:58 cert1.pem
-rw-r--r-- 1 root root 1846 Sep  7 06:04 cert2.pem
-rw-r--r-- 1 root root 3749 Sep  7 02:58 chain1.pem
-rw-r--r-- 1 root root 3749 Sep  7 06:04 chain2.pem
-rw-r--r-- 1 root root 5599 Sep  7 02:58 fullchain1.pem
-rw-r--r-- 1 root root 5595 Sep  7 06:04 fullchain2.pem
-rw------- 1 root root 1708 Sep  7 02:58 privkey1.pem
-rw------- 1 root root 1704 Sep  7 06:04 privkey2.pem


/etc/letsencrypt/csr:
total 212
drwxr-xr-x 2 root root 4096 Sep  7 06:07 .
drwxr-xr-x 9 root root 4096 Sep  7 21:29 ..
-rw-r--r-- 1 root root  952 Jan  4  2021 0000_csr-certbot.pem
-rw-r--r-- 1 root root 1001 Feb  4  2021 0001_csr-certbot.pem
-rw-r--r-- 1 root root  972 Feb 28  2021 0002_csr-certbot.pem
-rw-r--r-- 1 root root 1001 Feb 28  2021 0003_csr-certbot.pem
-rw-r--r-- 1 root root  972 Feb 28  2021 0004_csr-certbot.pem
-rw-r--r-- 1 root root  924 Mar  1  2021 0005_csr-certbot.pem
-rw-r--r-- 1 root root  928 Mar  1  2021 0006_csr-certbot.pem
-rw-r--r-- 1 root root  928 Mar  1  2021 0007_csr-certbot.pem
-rw-r--r-- 1 root root  924 Mar  5  2021 0008_csr-certbot.pem
-rw-r--r-- 1 root root  924 Mar  5  2021 0009_csr-certbot.pem
-rw-r--r-- 1 root root  924 Mar  5  2021 0010_csr-certbot.pem
-rw-r--r-- 1 root root  972 Mar  5  2021 0011_csr-certbot.pem
-rw-r--r-- 1 root root  928 Apr 27 08:25 0012_csr-certbot.pem
-rw-r--r-- 1 root root  928 Apr 27 08:27 0013_csr-certbot.pem
-rw-r--r-- 1 root root  928 Apr 30 06:58 0014_csr-certbot.pem
-rw-r--r-- 1 root root  928 Apr 30 06:58 0015_csr-certbot.pem
-rw-r--r-- 1 root root  972 May  4 16:28 0016_csr-certbot.pem
-rw-r--r-- 1 root root  924 May  6 04:33 0017_csr-certbot.pem
-rw-r--r-- 1 root root  928 Jun 29 17:18 0018_csr-certbot.pem
-rw-r--r-- 1 root root  928 Jun 29 17:18 0019_csr-certbot.pem
-rw-r--r-- 1 root root  972 Jul  3 17:12 0020_csr-certbot.pem
-rw-r--r-- 1 root root  924 Jul  5 17:17 0021_csr-certbot.pem
-rw-r--r-- 1 root root  928 Aug 28 21:50 0022_csr-certbot.pem
-rw-r--r-- 1 root root  928 Aug 28 21:51 0023_csr-certbot.pem
-rw-r--r-- 1 root root  972 Sep  1 21:51 0024_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  3 21:48 0025_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 07:00 0026_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 07:07 0027_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 07:09 0028_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 07:10 0029_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 07:31 0030_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 07:32 0031_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 07:32 0032_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 08:06 0033_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  6 08:06 0034_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 08:11 0035_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  6 08:29 0036_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 08:29 0037_csr-certbot.pem
-rw-r--r-- 1 root root 1021 Sep  6 08:33 0038_csr-certbot.pem
-rw-r--r-- 1 root root  972 Sep  6 08:34 0039_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 08:39 0040_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  6 17:18 0041_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 17:23 0042_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 17:23 0043_csr-certbot.pem
-rw-r--r-- 1 root root  924 Sep  6 17:24 0044_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  6 17:25 0045_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  6 17:50 0046_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  6 18:00 0047_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  7 02:58 0048_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  7 06:04 0049_csr-certbot.pem
-rw-r--r-- 1 root root  928 Sep  7 06:07 0050_csr-certbot.pem

/etc/letsencrypt/keys:
total 212
drwx------ 2 root root 4096 Sep  7 06:07 .
drwxr-xr-x 9 root root 4096 Sep  7 21:29 ..
-rw------- 1 root root 1704 Jan  4  2021 0000_key-certbot.pem
-rw------- 1 root root 1704 Feb  4  2021 0001_key-certbot.pem
-rw------- 1 root root 1704 Feb 28  2021 0002_key-certbot.pem
-rw------- 1 root root 1704 Feb 28  2021 0003_key-certbot.pem
-rw------- 1 root root 1704 Feb 28  2021 0004_key-certbot.pem
-rw------- 1 root root 1704 Mar  1  2021 0005_key-certbot.pem
-rw------- 1 root root 1704 Mar  1  2021 0006_key-certbot.pem
-rw------- 1 root root 1704 Mar  1  2021 0007_key-certbot.pem
-rw------- 1 root root 1704 Mar  5  2021 0008_key-certbot.pem
-rw------- 1 root root 1704 Mar  5  2021 0009_key-certbot.pem
-rw------- 1 root root 1704 Mar  5  2021 0010_key-certbot.pem
-rw------- 1 root root 1708 Mar  5  2021 0011_key-certbot.pem
-rw------- 1 root root 1704 Apr 27 08:25 0012_key-certbot.pem
-rw------- 1 root root 1704 Apr 27 08:27 0013_key-certbot.pem
-rw------- 1 root root 1704 Apr 30 06:58 0014_key-certbot.pem
-rw------- 1 root root 1704 Apr 30 06:58 0015_key-certbot.pem
-rw------- 1 root root 1704 May  4 16:28 0016_key-certbot.pem
-rw------- 1 root root 1704 May  6 04:33 0017_key-certbot.pem
-rw------- 1 root root 1704 Jun 29 17:18 0018_key-certbot.pem
-rw------- 1 root root 1704 Jun 29 17:18 0019_key-certbot.pem
-rw------- 1 root root 1704 Jul  3 17:12 0020_key-certbot.pem
-rw------- 1 root root 1704 Jul  5 17:17 0021_key-certbot.pem
-rw------- 1 root root 1704 Aug 28 21:50 0022_key-certbot.pem
-rw------- 1 root root 1704 Aug 28 21:51 0023_key-certbot.pem
-rw------- 1 root root 1708 Sep  1 21:51 0024_key-certbot.pem
-rw------- 1 root root 1704 Sep  3 21:48 0025_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 07:00 0026_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 07:07 0027_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 07:09 0028_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 07:10 0029_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 07:31 0030_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 07:32 0031_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 07:32 0032_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 08:06 0033_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 08:06 0034_key-certbot.pem
-rw------- 1 root root 1708 Sep  6 08:11 0035_key-certbot.pem
-rw------- 1 root root 1708 Sep  6 08:29 0036_key-certbot.pem
-rw------- 1 root root 1708 Sep  6 08:29 0037_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 08:33 0038_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 08:34 0039_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 08:39 0040_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 17:18 0041_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 17:23 0042_key-certbot.pem
-rw------- 1 root root 1708 Sep  6 17:23 0043_key-certbot.pem
-rw------- 1 root root 1708 Sep  6 17:24 0044_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 17:25 0045_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 17:50 0046_key-certbot.pem
-rw------- 1 root root 1704 Sep  6 18:00 0047_key-certbot.pem
-rw------- 1 root root 1708 Sep  7 02:58 0048_key-certbot.pem
-rw------- 1 root root 1704 Sep  7 06:04 0049_key-certbot.pem
-rw------- 1 root root 1704 Sep  7 06:07 0050_key-certbot.pem

/etc/letsencrypt/live:
total 32
drwx------ 7 root root 4096 Sep  7 02:58 .
drwxr-xr-x 9 root root 4096 Sep  7 21:29 ..
drwxr-xr-x 2 root root 4096 Sep  6 08:34 esb.geotech-co.ir
drwxr-xr-x 2 root root 4096 Sep  6 17:25 esb.geotech-co.ir-0001
drwxr-xr-x 2 root root 4096 Sep  7 06:04 mms.geotech-co.ir-0001
-rw-r--r-- 1 root root  740 Jan  4  2021 README

/etc/letsencrypt/live/esb.geotech-co.ir:
total 12
drwxr-xr-x 2 root root 4096 Sep  6 08:34 .
drwx------ 7 root root 4096 Sep  7 02:58 ..
lrwxrwxrwx 1 root root   41 Sep  6 08:34 cert.pem -> ../../archive/esb.geotech-co.ir/cert6.pem
lrwxrwxrwx 1 root root   42 Sep  6 08:34 chain.pem -> ../../archive/esb.geotech-co.ir/chain6.pem
lrwxrwxrwx 1 root root   46 Sep  6 08:34 fullchain.pem -> ../../archive/esb.geotech-co.ir/fullchain6.pem
lrwxrwxrwx 1 root root   44 Sep  6 08:34 privkey.pem -> ../../archive/esb.geotech-co.ir/privkey6.pem
-rw-r--r-- 1 root root  692 Jan  4  2021 README

/etc/letsencrypt/live/esb.geotech-co.ir-0001:
total 12
drwxr-xr-x 2 root root 4096 Sep  6 17:25 .
drwx------ 7 root root 4096 Sep  7 02:58 ..
lrwxrwxrwx 1 root root   46 Sep  6 17:25 cert.pem -> ../../archive/esb.geotech-co.ir-0001/cert5.pem
lrwxrwxrwx 1 root root   47 Sep  6 17:25 chain.pem -> ../../archive/esb.geotech-co.ir-0001/chain5.pem
lrwxrwxrwx 1 root root   51 Sep  6 17:25 fullchain.pem -> ../../archive/esb.geotech-co.ir-0001/fullchain5.pem
lrwxrwxrwx 1 root root   49 Sep  6 17:25 privkey.pem -> ../../archive/esb.geotech-co.ir-0001/privkey5.pem
-rw-r--r-- 1 root root  692 Mar  1  2021 README

/etc/letsencrypt/live/mms.geotech-co.ir-0001:
total 12
drwxr-xr-x 2 root root 4096 Sep  7 06:04 .
drwx------ 7 root root 4096 Sep  7 02:58 ..
lrwxrwxrwx 1 root root   46 Sep  7 06:04 cert.pem -> ../../archive/mms.geotech-co.ir-0001/cert2.pem
lrwxrwxrwx 1 root root   47 Sep  7 06:04 chain.pem -> ../../archive/mms.geotech-co.ir-0001/chain2.pem
lrwxrwxrwx 1 root root   51 Sep  7 06:04 fullchain.pem -> ../../archive/mms.geotech-co.ir-0001/fullchain2.pem
lrwxrwxrwx 1 root root   49 Sep  7 06:04 privkey.pem -> ../../archive/mms.geotech-co.ir-0001/privkey2.pem
-rw-r--r-- 1 root root  692 Sep  7 02:58 README

/etc/letsencrypt/renewal:
total 28
drwxr-xr-x 2 root root 4096 Sep  7 06:14 .
drwxr-xr-x 9 root root 4096 Sep  7 21:29 ..
-rw-r--r-- 1 root root  569 Sep  6 17:25 esb.geotech-co.ir-0001.conf
-rw-r--r-- 1 root root  544 Sep  6 08:34 esb.geotech-co.ir.conf
-rw-r--r-- 1 root root  569 Sep  7 06:04 mms.geotech-co.ir-0001.conf

/etc/letsencrypt/renewal-hooks:
total 20
drwxr-xr-x 5 root root 4096 Jan  4  2021 .
drwxr-xr-x 9 root root 4096 Sep  7 21:29 ..
drwxr-xr-x 2 root root 4096 Jan  4  2021 deploy
drwxr-xr-x 2 root root 4096 Jan  4  2021 post
drwxr-xr-x 2 root root 4096 Jan  4  2021 pre

/etc/letsencrypt/renewal-hooks/deploy:
total 8
drwxr-xr-x 2 root root 4096 Jan  4  2021 .
drwxr-xr-x 5 root root 4096 Jan  4  2021 ..

/etc/letsencrypt/renewal-hooks/post:
total 8
drwxr-xr-x 2 root root 4096 Jan  4  2021 .
drwxr-xr-x 5 root root 4096 Jan  4  2021 ..

/etc/letsencrypt/renewal-hooks/pre:
total 8
drwxr-xr-x 2 root root 4096 Jan  4  2021 .
drwxr-xr-x 5 root root 4096 Jan  4  2021 ..
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: esb.geotech-co.ir-0001
    Serial Number: 43746fe31112ef65e2cd05eae79027b2ca4
    Key Type: RSA
    Domains: esb.geotech-co.ir
    Expiry Date: 2021-12-05 20:25:15+00:00 (VALID: 88 days)
    Certificate Path: /etc/letsencrypt/live/esb.geotech-co.ir-0001/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/esb.geotech-co.ir-0001/privkey.pem
  Certificate Name: esb.geotech-co.ir
    Serial Number: 3282d335d6b0477ad8cd8d571c5c61fb5c8
    Key Type: RSA
    Domains: esb.shr.co.ir esb.geotech-co.ir mms.geotech-co.ir
    Expiry Date: 2021-12-05 11:34:20+00:00 (VALID: 88 days)
    Certificate Path: /etc/letsencrypt/live/esb.geotech-co.ir/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/esb.geotech-co.ir/privkey.pem
  Certificate Name: mms.geotech-co.ir-0001
    Serial Number: 3ad0df43f1092ba32dba19af5b0e31ea84f
    Key Type: RSA
    Domains: mms.geotech-co.ir
    Expiry Date: 2021-12-06 09:04:28+00:00 (VALID: 89 days)
    Certificate Path: /etc/letsencrypt/live/mms.geotech-co.ir-0001/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/mms.geotech-co.ir-0001/privkey.pem
1 Like

There is a name:port conflict in your config:

port 443 namevhost mms.geotech-co.ir (/etc/httpd/conf.d/ssl.conf:58)
port 443 namevhost mms.geotech-co.ir (/etc/httpd/sites-available/mms.geotech-co.ir-le-ssl.conf:2)

You probably only need a small part of the first file.
I would go there and change the "mms.geotech-co.ir" to "localhost" (or "SomeFakeName").

3 Likes

Thanks a lot
There was a line in my ssl.conf contains <VirtualHost __default__:443>
I changed __default__ that really was "mms.geotech-co.ir" to localhost and my problem solved, thanks for your help

3 Likes

Glad to have helped :slight_smile:
Cheers from Miami :beers:

#FreeCUBA :cuba:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.