# Lets Encrypt wrong certificate date

**URL:** https://community.letsencrypt.org/t/lets-encrypt-wrong-certificate-date/163771
**Category:** Help
**Created:** [October 22, 2021, 2:22pm UTC](https://community.letsencrypt.org/t/lets-encrypt-wrong-certificate-date/163771 "2021-10-22T14:22:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![olobambolo](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@olobambolo](https://community.letsencrypt.org/u/olobambolo)
#### Post date: [October 22, 2021, 2:22pm UTC](https://community.letsencrypt.org/t/lets-encrypt-wrong-certificate-date/163771/1 "2021-10-22T14:22:48Z")

</div>

I have some issue with lets encrypt certificate on one of my subdomains - mail.programyzadarmo.net.pl. It worked but for some reason letencrypt auto renew has stopped working so yesterday I generated a new auto certificate using the DirectAdmin panel. I have no issues for programyzadaro.net.pl domain and blog subdomain but mail.programyzadarmo.net.pl shows wrong date - https ssl certicate will be served with a valid time of: Sat, 17 Aug 2044 .

My domain is: programyzadarmo.net.pl

The operating system my web server runs on is - Centos 7.9

I can login to a root shell on my machine - Yes  
I'm using a control panel to manage my site - Direct Admin

Thank You 🙂

---

<div class="post-metadata">

### Author: ![sahsanu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/sahsanu/32/89984_2.png) [@sahsanu](https://community.letsencrypt.org/u/sahsanu)
#### Post date: [October 22, 2021, 2:35pm UTC](https://community.letsencrypt.org/t/lets-encrypt-wrong-certificate-date/163771/2 "2021-10-22T14:35:21Z")

</div>

Hello @olobambolo,

I know nothing about DirectAdmin so I won't be able to help here but yesterday you renewed the certificate for your domain `mail.programyzadarmo.net.pl` and it is the cert shown when reaching your site here [https://mail.programyzadarmo.net.pl](https://mail.programyzadarmo.net.pl) but you are serving a self-signed certificate when you try to reach your server using smtp and imap ports.

This is certificate served:

```nohighlight
Issuer: C = GB, ST = Someprovince, L = Sometown, O = none, OU = none, CN = localhost, emailAddress = webaster@localhost
        Validity
            Not Before: May 13 00:13:50 2016 GMT
            Not After : Sep 28 00:13:50 2043 GMT

```

So you should try to know why your DirectAdmin panel is using this certificate for smtp and imap instead of your renewed and valid certificate.

Good luck,  
sahsanu

---

<div class="post-metadata">

### Author: ![olobambolo](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@olobambolo](https://community.letsencrypt.org/u/olobambolo)
#### Post date: [October 22, 2021, 2:49pm UTC](https://community.letsencrypt.org/t/lets-encrypt-wrong-certificate-date/163771/3 "2021-10-22T14:49:16Z")

</div>

Problem solved, I re-added the subdomain in DirectAdmin 🙂  
Thank You 🙂

---

<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: [November 21, 2021, 2:49pm UTC](https://community.letsencrypt.org/t/lets-encrypt-wrong-certificate-date/163771/4 "2021-11-21T14:49:59Z")

</div>

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