# Firefox does not trust this site because it uses a certificate that is not valid

**URL:** <https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793>\
**Category:** Help\
**Created:** [July 30, 2019, 1:34pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793 "2019-07-30T13:34:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kariuka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@kariuka](https://community.letsencrypt.org/u/kariuka)\
**Post date:** [July 30, 2019, 1:34pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/1 "2019-07-30T13:34:50Z")

</div>

Hi,  
site:archiemigwi.tech

I am quite new to Let’s Encrypt so I would appreciate all the help I can get here. I run certbot --apache it seemed to have a successful output but when I try to access my site on firefox the certificate is still self signed. Here is the output from firefox:

![image](https://global.discourse-cdn.com/letsencrypt/original/3X/2/9/29f071885e9c1cfd351b058c66491ac9f60dbb74.png)

When I check the site on ssllabs, it gives me a Certficate Name Mismatch message.

Appreciate your response.

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [July 30, 2019, 1:43pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/2 "2019-07-30T13:43:06Z")

</div>

Hi @kariuka

> [@kariuka](#):
>
> site:archiemigwi.tech

you have created 12 certificates in the last 7 days ( [https://check-your-website.server-daten.de/?q=archiemigwi.tech#ct-logs](https://check-your-website.server-daten.de/?q=archiemigwi.tech#ct-logs) ):

| Issuer | not before | not after | Domain names | LE-Duplicate | next LE |
| --- | --- | --- | --- | --- | --- |
| Let's Encrypt Authority X3 | 2019-07-30 | 2019-10-28 | archiemigwi.tech, www.archiemigwi.tech - 2 entries | duplicate nr. 4 | |
| Let's Encrypt Authority X3 | 2019-07-29 | 2019-10-27 | archiemigwi.tech, www.archiemigwi.tech - 2 entries | duplicate nr. 3 | |
| Let's Encrypt Authority X3 | 2019-07-29 | 2019-10-27 | archiemigwi.tech, smtp.archiemigwi.tech - 2 entries | duplicate nr. 3 | |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech, www.archiemigwi.tech - 2 entries | duplicate nr. 2 | |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech, www.archiemigwi.tech - 2 entries | duplicate nr. 1 | |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech - 1 entries | duplicate nr. 5 | next Letsencrypt certificate: 2019-08-03 06:20:24 |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech - 1 entries | duplicate nr. 4 | |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech, smtp.archiemigwi.tech - 2 entries | duplicate nr. 2 | |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech - 1 entries | duplicate nr. 3 | |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech - 1 entries | duplicate nr. 2 | |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech, smtp.archiemigwi.tech - 2 entries | duplicate nr. 1 | |
| Let's Encrypt Authority X3 | 2019-07-27 | 2019-10-25 | archiemigwi.tech - 1 entries | duplicate nr. 1 | |

But you don't use one of these, instead, there is a self signed certificate:

```nohighlight
E=root@centos-s-1vcpu-2gb-ams3-01, 
CN=centos-s-1vcpu-2gb-ams3-01, 
OU=SomeOrganizationalUnit, O=SomeOrganization, 
L=SomeCity, S=SomeState, C=--
	27.07.2019
	26.07.2020
expires in 362 days	

```

Where are these certificates?

What says

```nohighlight
certbot certificates

```

---

<div class="post-metadata">

**Author:** ![kariuka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@kariuka](https://community.letsencrypt.org/u/kariuka)\
**Post date:** [July 30, 2019, 1:48pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/3 "2019-07-30T13:48:37Z")

</div>

Hi,

Thanks for your response, as i said I am a newbie at this and I have been retrying certbot only to get the result that I have posted above, and I guess thats why there are so many certs. The output from certbot certificates is as below;

Saving debug log to /var/log/letsencrypt/letsencrypt.log

* * *

Found the following certs:  
Certificate Name: archiemigwi.tech  
Domains: archiemigwi.tech www.archiemigwi.tech  
Expiry Date: 2019-10-28 10:35:26+00:00 (VALID: 89 days)  
Certificate Path: /etc/letsencrypt/live/archiemigwi.tech/fullchain.pem  
Private Key Path: /etc/letsencrypt/live/archiemigwi.tech/privkey.pem

* * *

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [July 30, 2019, 1:56pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/4 "2019-07-30T13:56:16Z")

</div>

Looks like Certbot doesn’t understand your configuration and can’t install the certificate.

What says

```auto
apachectl -S

```

Perhaps you have more then one port 80 vHost.

---

<div class="post-metadata">

**Author:** ![kariuka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@kariuka](https://community.letsencrypt.org/u/kariuka)\
**Post date:** [July 30, 2019, 2:00pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/5 "2019-07-30T14:00:38Z")

</div>

> [@JuergenAuer](#):
>
> apachectl -S

I get no response on CLI??? What does that mean?

[root@centos-s-1vcpu-2gb-ams3-01 sites-available]# apachectl -S  
[root@centos-s-1vcpu-2gb-ams3-01 sites-available]#

---

<div class="post-metadata">

**Author:** ![kariuka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@kariuka](https://community.letsencrypt.org/u/kariuka)\
**Post date:** [July 30, 2019, 2:02pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/6 "2019-07-30T14:02:54Z")

</div>

And an apachectl configtest gives me a Syntax Ok?? Really buggy.

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [July 30, 2019, 4:04pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/7 "2019-07-30T16:04:09Z")

</div>

> [@kariuka](#):
>
> I get no response on CLI??? What does that mean?

If you use CentOS, try

```nohighlight
httpd -S

```

Or check your config files manual to find duplicated definitions port + server name.

---

<div class="post-metadata">

**Author:** ![kariuka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@kariuka](https://community.letsencrypt.org/u/kariuka)\
**Post date:** [July 30, 2019, 6:59pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/8 "2019-07-30T18:59:21Z")

</div>

Hi Juergen,

Here is the output of httpd -S. Thanks again for taking the time.

VirtualHost configuration:  
\*:80 www.archiemigwi.tech (/etc/httpd/sites-enabled/archiemigwi.tech.conf:1)  
\*:443 is a NameVirtualHost  
default server www.archiemigwi.tech (/etc/httpd/conf.d/ssl.conf:56)  
port 443 namevhost www.archiemigwi.tech (/etc/httpd/conf.d/ssl.conf:56)  
port 443 namevhost www.archiemigwi.tech (/etc/httpd/sites-available/archiemigwi.tech-le-ssl.conf:2)  
alias archiemigwi.tech  
ServerRoot: “/etc/httpd”  
Main DocumentRoot: “/var/www/archiemigwi.tech/public\_html”  
Main ErrorLog: “/etc/httpd/logs/error\_log”  
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  
Mutex authn-socache: using\_defaults  
Mutex ssl-cache: 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

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [July 30, 2019, 7:15pm UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/9 "2019-07-30T19:15:05Z")

</div>

There

> [@kariuka](#):
>
> port 443 namevhost www.archiemigwi.tech (/etc/httpd/conf.d/ssl.conf:56)  
> port 443 namevhost www.archiemigwi.tech (/etc/httpd/sites-available/archiemigwi.tech-le-ssl.conf:2)  
> alias archiemigwi.tech

you see the problem. Duplicated combinations of port and domain name. The second vHost has both domain names, so merge these vHosts in the second.

Restart your Apache, then recheck your domain.

---

<div class="post-metadata">

**Author:** ![kariuka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@kariuka](https://community.letsencrypt.org/u/kariuka)\
**Post date:** [July 31, 2019, 6:42am UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/10 "2019-07-31T06:42:47Z")

</div>

> [@JuergenAuer](#):
>
> Duplicated combinations of port and domain name

Thank you so much Juergen for your patience and time. it works well now.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [August 30, 2019, 6:42am UTC](https://community.letsencrypt.org/t/firefox-does-not-trust-this-site-because-it-uses-a-certificate-that-is-not-valid/98793/11 "2019-08-30T06:42:51Z")

</div>

Closed on August 30, 2019, 6:42am UTC

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