tls: failed to verify certificate: x509: certificate is valid for X not X

witwiecky

Cadet
Joined
Jan 16, 2024
Messages
2
New to all this first server. Fresh install of Truenas Scale Version: 23.10.1.

Created acme cert for Truenas and works with main domain. Followed Truecharts getting started and installed Traefik, Clusserisser, cert-manager, cloudnative-pg and prometheus-operator along with photoprism. All certs and ingress worked perfectly. Then proceeded to setup MetalLB following instructions and everything seemed to be working as expected. Installed homarr but cert wasn't working but traefik cert and photoprism was. Deleted photoprism reinstall to test and cert no longer worked for it either. Cert-manger log showing below message. I'm completely lost and unable to find solution searching the term "failed to verify certificate: x509: certificate is valid for".

Code:
2024-01-16 15:50:45.249101-08:00E0116 23:50:45.249002       1 controller.go:167] "cert-manager/orders: re-queuing item due to error processing" err="error creating new order: Get \"https://acme-v02.api.letsencrypt.org/directory\": tls: failed to verify certificate: x509: certificate is valid for a9cf579442c73667a81223174b001ec6.1651363d037689efad60956f11bdabc4.traefik.default, not acme-v02.api.letsencrypt.org" key="ix-homarr/homarr-tls-0-1-1455900444"
2024-01-16 15:50:47.015725-08:00E0116 23:50:47.015553       1 controller.go:167] "cert-manager/orders: re-queuing item due to error processing" err="error creating new order: Get \"https://acme-v02.api.letsencrypt.org/directory\": tls: failed to verify certificate: x509: certificate is valid for a9cf579442c73667a81223174b001ec6.1651363d037689efad60956f11bdabc4.traefik.default, not acme-v02.api.letsencrypt.org" key="ix-photoprism/photoprism-tls-0-1-1964781474"
 

witwiecky

Cadet
Joined
Jan 16, 2024
Messages
2
New to all this first server. Fresh install of Truenas Scale Version: 23.10.1.

Created acme cert for Truenas and works with main domain. Followed Truecharts getting started and installed Traefik, Clusserisser, cert-manager, cloudnative-pg and prometheus-operator along with photoprism. All certs and ingress worked perfectly. Then proceeded to setup MetalLB following instructions and everything seemed to be working as expected. Installed homarr but cert wasn't working but traefik cert and photoprism was. Deleted photoprism reinstall to test and cert no longer worked for it either. Cert-manger log showing below message. I'm completely lost and unable to find solution searching the term "failed to verify certificate: x509: certificate is valid for".

Code:
2024-01-16 15:50:45.249101-08:00E0116 23:50:45.249002       1 controller.go:167] "cert-manager/orders: re-queuing item due to error processing" err="error creating new order: Get \"https://acme-v02.api.letsencrypt.org/directory\": tls: failed to verify certificate: x509: certificate is valid for a9cf579442c73667a81223174b001ec6.1651363d037689efad60956f11bdabc4.traefik.default, not acme-v02.api.letsencrypt.org" key="ix-homarr/homarr-tls-0-1-1455900444"
2024-01-16 15:50:47.015725-08:00E0116 23:50:47.015553       1 controller.go:167] "cert-manager/orders: re-queuing item due to error processing" err="error creating new order: Get \"https://acme-v02.api.letsencrypt.org/directory\": tls: failed to verify certificate: x509: certificate is valid for a9cf579442c73667a81223174b001ec6.1651363d037689efad60956f11bdabc4.traefik.default, not acme-v02.api.letsencrypt.org" key="ix-photoprism/photoprism-tls-0-1-1964781474"
Solved on Discord. Had to remove additional domain name that I added on network tab and reboot. All good again
 
Top