NET::ERR_CERT_AUTHORITY_INVALID error on my website

Hello!

All of a sudden I’m receiving this error when browsing my website https://solocodigo.com

Does anyone know what might be going on?

Any help will be appreciated.

Sergio

I am facing the same issue at the moment.

Hola @indomito,

Your web server is not serving the intermediate certificate:

$ echo | openssl s_client -connect solocodigo.com:443 -servername solocodigo.com 2>/dev/null | awk '/Certificate chain/,/---/'
Certificate chain
 0 s:/CN=solocodigo.com
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
---

And the ouput of above command should be:

Certificate chain
 0 s:/CN=solocodigo.com
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
 1 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
   i:/O=Digital Signature Trust Co./CN=DST Root CA X3
---

I don’t know what is your web server but you should serve the fullchain.pem file as the certificate file instead of cert.pem file or you should use cert.pem and chain.pem, no idea how to configure this in your CentOS WebPanel but the problem is that you are not serving the intermediate certificate for Let’s Encrypt and you should ;).

Un saludo,
sahsanu

3 Likes

I have the same problem. Until yesterday everything was fine. Today I am getting errors with Chrome and iPhone, Firefox is still fine.

I cannot renew the cert, because it is still valid. I am using the certbot and serving the fullchain.pem.

Thank you in advance!

1 Like

Hi @volkerh,

What is your domain name?.

Cheers,
sahsanu

its analytics.ihubserver.de

@volkerh, double check your web server config because you are not serving the intermediate cert too:

$ echo | openssl s_client -connect analytics.ihubserver.de:443 -servername analytics.ihubserver.de 2>/dev/null | awk '/Certificate chain/,/---/'
Certificate chain
 0 s:/CN=analytics.ihubserver.de
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
---
2 Likes

Thanks a lot @sahsanu

I compared the fullchain and cert.pem by diff -y fullchain.pem cert.pem resulting in the same file.

Why is that and how to correct it?

I don't know how that happened but fullchain.pem is the concatenation of cert.pem and chain.pem, so you should add the chain.pem content to your fullchain.pem.

In case you don't have the intermediate cert you can get it here https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt

But, it is really strange and you should review the process to know how fullchain.pem is not including the intermediate cert.

2 Likes

Hola sahsanu,

I was missing the chain.crt file. For some reason my SSLCertificateChainFile was pointing to a solocodigo.com.bundle file that was empty. I reissued the certificate and I got a chain.crt file. Looks like it’s working now :slight_smile:

Muchas gracias!

1 Like

Buenas @indomito,

Perfecto :wink: , I’m glad you get it working now.

Un placer,
sahsanu

1 Like

I have the same problem also2018-03-11_180001
change this configuration,but not ok?

Hi @Hgg,

Show the output of this command:

cat /home/pc_apa01/instance/https/ca/fullchain.pem

Cheers,
sahsanu

cat fullchain.pem

-----BEGIN CERTIFICATE-----
MIIE+zCCA+OgAwIBAgISA75OFA2KDrg4W9HDAv8pkxHQMA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xODAzMTEwNzQwNTRaFw0x
ODA2MDkwNzQwNTRaMBcxFTATBgNVBAMTDHd3dy53Z2F0cy5jbjCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBALSQF//8GqHMkN7nIoV5AUrmqmRhCXXI3DTI
LhLz7KxpQv6QPIsIyS+q37X0/4eLt0jozyV13fgYWpK/0Q3d7g9Wvvodn9tBghzB
bylcFBV2u+oLZ9sp6hWTJ4kzOIRNvseJZMD82+3+vaogbMvSGEqDnVD4cGvZ2iP7
DnHAZDwQ66twctAD75bQBhu+MqghZMpiYGbcAvc6OJ8GcogH7HJcizrcT9ryVLYz
6SHX1GvU0Qwe8HlzvVYb4gSjVK+cfeNTY34tAJeU+16/3ul8tgrKxSoSqDy0l82/
sYIopTdm6lbTSh1y5vAAPSj2k+JiuNXesEPHxNzNbaJVum2Apm8CAwEAAaOCAgww
ggIIMA4GA1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUH
AwIwDAYDVR0TAQH/BAIwADAdBgNVHQ4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wOi8vY3JsLmlkZW50cnVzdC5jb20vRFNUUk9PVENBWDNDUkwu
Y3JsMB0GA1UdDgQWBBSoSmpjBH3duubRObemRWXv86jsoTANBgkqhkiG9w0BAQsF
AAOCAQEA3TPXEfNjWDjdGBX7CVW+dla5cEilaUcne8IkCJLxWh9KEik3JHRRHGJo
uM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr/1wXKtx8/
wApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so/joWUoHOUgwu
X4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG
PfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6
KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==
-----END CERTIFICATE-----

Today The problem suddenly appeared.

This is the previous configuration
2018-03-11_183615

thanks

@hgg, your fullchain.pem seems correct (it contains the certificate issued today and the right intermediate cert), also, your web server is also serving the certificate issued today but not the intermediate cert.

What is the entire Apache VirtualHost conf for your domain?. Do you see any error on your Apache logs?.

I see now your last post showing you were using cert.pem, could you please restart the Apache web server again?

1 Like

I have restarted apache server,but this problem is still apear

Then you need to figure out why Apache is not loading the fullchain.pem.

Also, show the output of these commands:

ls -la /home/pc_apa01/instance/https/ca/

namei -l /home/pc_apa01/instance/https/ca/

@Hgg, I see you are making progress but now you are serving the cert and fullchain (both of them).

$ echo | openssl s_client -connect www.wgats.cn:443 -servername www.wgats.cn 2>/dev/null | awk '/Certificate chain/,/---/'
Certificate chain
 0 s:/CN=www.wgats.cn
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
 1 s:/CN=www.wgats.cn
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
 2 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
   i:/O=Digital Signature Trust Co./CN=DST Root CA X3
---

I don’t know what Apache version you are using, if it is 2.4.8 or above you should use this:

SSLCertificateFile /home/pc_apa01/instance/https/ca/fullchain.pem
SSLCertificateKeyFile /home/pc_apa01/instance/https/ca/privkey.pem

If you are using a version below 2.4.8 you should use this:

SSLCertificateFile /home/pc_apa01/instance/https/ca/cert.pem
SSLCertificateKeyFile /home/pc_apa01/instance/https/ca/privkey.pem
SSLCertificateChainFile /home/pc_apa01/instance/https/ca/chain.pem
1 Like

thanks a lot @sahsanu ,this problem is solved,we modified the web.conf

SSLEngine On
SSLCertificateFile "/home/pc_apa01/instance/https/ca/cert.pem"
SSLCertificateKeyFile "/home/pc_apa01/instance/https/ca/privkey.pem"
add the SSLCertificateChainFile “/home/pc_apa01/instance/https/ca/fullchain.pem”

and restart apache,that’s ok!
thank you very much @sahsanu
But we haven’t met this problem before,I don’t konw why this is the problem

1 Like