# Certificate sometime not works

**URL:** <https://community.letsencrypt.org/t/certificate-sometime-not-works/89698>\
**Category:** Server\
**Created:** [March 27, 2019, 8:11am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698 "2019-03-27T08:11:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jejj](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jejj](https://community.letsencrypt.org/u/Jejj)\
**Post date:** [March 27, 2019, 8:11am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/1 "2019-03-27T08:11:27Z")

</div>

I’ve got certificate and config VirtualHost already, but then sometime browsers show it is not secure.  
When show not secure, the certificate will be self-signed cert.

And i have another domain inside this server too which display correct cert always  
Any idea how to make it work?

---

<div class="post-metadata">

**Author:** ![mnordhoff](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mnordhoff/32/22583_2.png) [@mnordhoff](https://community.letsencrypt.org/u/mnordhoff)\
**Post date:** [March 27, 2019, 8:13am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/2 "2019-03-27T08:13:49Z")

</div>

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. [https://crt.sh/?q=example.com](https://crt.sh/?q=example.com)), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):

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 (e.g. output of `certbot --version` or `certbot-auto --version` if you’re using Certbot):

---

<div class="post-metadata">

**Author:** ![Jejj](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jejj](https://community.letsencrypt.org/u/Jejj)\
**Post date:** [March 27, 2019, 8:20am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/3 "2019-03-27T08:20:01Z")

</div>

> [@mnordhoff](#):
>
> My domain is:
> 
> I ran this command:
> 
> It produced this output:
> 
> My web server is (include version):
> 
> The operating system my web server runs on is (include version):
> 
> My hosting provider, if applicable, is:
> 
> I can login to a root shell on my machine (yes or no, or I don’t know):
> 
> 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 (e.g. output of `certbot --version` or `certbot-auto --version` if you’re using Certbot):

My domain is: [smebigsmile.com](http://smebigsmile.com)  
(another domain which always secure is [asapatana.com](http://asapatana.com))

I ran this command:  
/usr/local/directadmin/scripts/letsencrypt.sh request [smebig.com](http://smebig.com)  
and it said success but when open with Firefox sometime not secure

My web server is (include version): Apache

The operating system my web server runs on is (include version): Centos 6

I can login to a root shell on my machine (yes or no, or I don’t know): I have ssh to login

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

Thanks a lot

---

<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:** [March 27, 2019, 8:32am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/4 "2019-03-27T08:32:12Z")

</div>

Hi @Jejj

> [@Jejj](#):
>
> My domain is: [smebigsmile.com](http://smebigsmile.com)

there is only a self signed certificate visible ( [https://check-your-website.server-daten.de/?q=smebigsmile.com](https://check-your-website.server-daten.de/?q=smebigsmile.com) ):

```nohighlight
E=webmaster@localhost, CN=localhost, OU=none, O=none, L=Sometown, 
S=Someprovince, C=US
	12.06.2015
	27.10.2042
expires in 8615 days	

```

Both connections use that certificate:

| Domainname | Http-Status | redirect | Sec. | G |
| --- | --- | --- | --- | --- |
| • [http://smebigsmile.com/](http://smebigsmile.com/) | | | | |
| 103.22.180.144 | 301 | [https://smebigsmile.com/](https://smebigsmile.com/) | 0.484 | A |
| | | | | |
| • [http://www.smebigsmile.com/](http://www.smebigsmile.com/) | | | | |
| 103.22.180.144 | 301 | [https://www.smebigsmile.com/](https://www.smebigsmile.com/) | 1.673 | A |
| | | | | |
| • [https://www.smebigsmile.com/](https://www.smebigsmile.com/) | | | | |
| 103.22.180.144 | 301 | [https://smebigsmile.com/](https://smebigsmile.com/) | 4.200 | N |
| Certificate error: RemoteCertificateNameMismatch, RemoteCertificateChainErrors | | | | |
| | | | | |
| • [https://smebigsmile.com/](https://smebigsmile.com/) | | | | |
| 103.22.180.144 | 200 | | 3.933 | N |
| Certificate error: RemoteCertificateNameMismatch, RemoteCertificateChainErrors | | | | |

And you have already three identical certificates, complete 6 in the last 7 days:

| CRT-Id | Issuer | not before | not after | Domain names | LE-Duplicate | next LE |
| --- | --- | --- | --- | --- | --- | --- |
| 1320854496 | CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US | 2019-03-27 02:54:16 | 2019-06-25 01:54:16 | [smebigsmile.com](http://smebigsmile.com), [www.smebigsmile.com](http://www.smebigsmile.com) | duplicate nr. 3 | |
| 1320854042 | CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US | 2019-03-27 02:53:10 | 2019-06-25 01:53:10 | [smebigsmile.com](http://smebigsmile.com), [www.smebigsmile.com](http://www.smebigsmile.com) | duplicate nr. 2 | |
| 1314470940 | CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US | 2019-03-25 00:35:28 | 2019-06-22 23:35:28 | [smebigsmile.com](http://smebigsmile.com), [www.smebigsmile.com](http://www.smebigsmile.com) | duplicate nr. 1 | |
| 1308749386 | CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US | 2019-03-23 15:12:08 | 2019-06-21 14:12:08 | [smebigsmile.com](http://smebigsmile.com) | duplicate nr. 2 | |
| 1311578227 | CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US | 2019-03-23 14:56:02 | 2019-06-21 13:56:02 | [smebigsmile.com](http://smebigsmile.com) | duplicate nr. 1 | |
| 1310227078 | CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US | 2019-03-23 02:20:51 | 2019-06-21 01:20:51 | [smeknowledge.com](http://smeknowledge.com), [www.smebigsmile.com](http://www.smebigsmile.com) | duplicate nr. 1 | |

Your command uses another domain, smebig, not smebigsmile.

> [@Jejj](#):
>
> /usr/local/directadmin/scripts/letsencrypt.sh request [smebig.com](http://smebig.com)

There is only a timeout.

Your script is from directadmin. Is there an additional installation required to remove the self signed certificate?

---

<div class="post-metadata">

**Author:** ![Jejj](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jejj](https://community.letsencrypt.org/u/Jejj)\
**Post date:** [March 27, 2019, 8:47am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/5 "2019-03-27T08:47:32Z")

</div>

> [@JuergenAuer](#):
>
> there is only a self signed certificate visible ( [https://check-your-website.server-daten.de/?q=smebigsmile.com](https://check-your-website.server-daten.de/?q=smebigsmile.com) ):
> 
> ```nohighlight
> 
> ```

Yeah, that's right but sometime it shows the correct one  
Use Chrome or Firefox will randomly show the secure and not secure

> [@JuergenAuer](#):
>
> And you have already three identical certificates, complete 6 in the last 7 days:

Yes, i used the latest one right now

> [@JuergenAuer](#):
>
> Your command uses another domain, smebig, not smebigsmile.
> 
> ![](https://sea3.discourse-cdn.com/letsencrypt/uploads/default/original/3X/6/b/6b702ef4bad82ba548f78ccd8b5acf5586300b42.png) Jejj:

Sorry, it is typo, but when request i typed [smebigsmile.com](http://smebigsmile.com)  
What should i do to make it secure always?

---

<div class="post-metadata">

**Author:** ![Jejj](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jejj](https://community.letsencrypt.org/u/Jejj)\
**Post date:** [March 27, 2019, 8:54am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/6 "2019-03-27T08:54:52Z")

</div>

I

 ![58](https://global.discourse-cdn.com/letsencrypt/original/3X/8/9/8968baa9b4b2200e0d9040c55c3d1fc37d81207c.png)  
is this maybe the root cause?  
then how gonna solve it, pls?

Thanks

---

<div class="post-metadata">

**Author:** ![mnordhoff](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mnordhoff/32/22583_2.png) [@mnordhoff](https://community.letsencrypt.org/u/mnordhoff)\
**Post date:** [March 27, 2019, 9:06am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/7 "2019-03-27T09:06:08Z")

</div>

Is the website using multiple servers running behind a load balancer or something?

One way this can happen is if something went wrong when Apache was reloaded or restarted and there are both old and new Apache processes running with different certificates configured. Though it’s not _supposed_ to happen at all.

---

<div class="post-metadata">

**Author:** ![Jejj](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jejj](https://community.letsencrypt.org/u/Jejj)\
**Post date:** [March 27, 2019, 9:13am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/8 "2019-03-27T09:13:35Z")

</div>

It is only VPS which not running any load balancer. Maybe the server enter the wrong state? Do i need to restart machine to try?

---

<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:** [March 27, 2019, 9:31am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/9 "2019-03-27T09:31:39Z")

</div>

> [@Jejj](#):
>
> is this maybe the root cause?  
> then how gonna solve it, pls?

Oh, thanks, should read the complete output.

That looks completely wrong. But your https + non-www version has the correct certificate (block url-check):

| Domainname (9471) | Http-Status | redirect | Sec. | G |
| --- | --- | --- | --- | --- |
| • [https://www.smebigsmile.com/](https://www.smebigsmile.com/) | | | | |
| 103.22.180.144 | 301 | [https://smebigsmile.com/](https://smebigsmile.com/) | 3.337 | N |
| Certificate error: RemoteCertificateNameMismatch, RemoteCertificateChainErrors | | | | |
| | | | | |
| • [https://smebigsmile.com/](https://smebigsmile.com/) | | | | |
| 103.22.180.144 | 200 | | 4.330 | I |
| | | | | |

And the chain check uses another connection.

So it looks that you have an orphaned apache process. Sometimes answers the old, sometimes the new.

--\> reboot your server to kill that process.

---

<div class="post-metadata">

**Author:** ![Jejj](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@Jejj](https://community.letsencrypt.org/u/Jejj)\
**Post date:** [March 27, 2019, 9:35am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/10 "2019-03-27T09:35:01Z")

</div>

Thanks a lot to both of you @JuergenAuer @mnordhoff😃 It took me a few days to solved

---

<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:** [April 26, 2019, 9:35am UTC](https://community.letsencrypt.org/t/certificate-sometime-not-works/89698/11 "2019-04-26T09:35:02Z")

</div>

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