rocha7778
I have a valid certificate but server throws an error saying it's expired
Good morning family I have a doubt about the following case:
I have a certificate mounted in a cowboy server ({:plug_cowboy, “~> 2.0”}), the certificate is still valid ( will be expired in two months), but the server throws an error saying :
[notice] [2023-04-12] [16:03:09.853] TLS :server: In state :certify at ssl_handshake.erl:2015 generated SERVER ALERT: Fatal - Certificate Expired
Maybe this has happened to someone before, I have been looking on the internet about the error, but I have not found anything useful yet.
any suggestion?
Marked As Solved
rocha7778
In the end, I tested the production certificate file in the test environment and it showed that the certificate file really was expired.
So thank you for your suggestions, they were very helpful to me.
Also Liked
voltone
A server does not verify the expiry of its own certificate during the handshake, it must be checking the client’s certificate. Did you enable peer certificate verification on the server, and are you connecting with a client that has a client certificate? In that case please check the validity of the client’s certificate.
JeyHey
-
Maybe you copied the certificate into your priv directory but forgot to also copy it into your _build directory.
-
Or your test machine has the wrong time.







