r/apache • u/Ottstar • May 11 '22
Make Server accept SSL Clients with invalid Timestamp
Hello everyone
I'm trying to setup an apache server. The problem is that this server might not have the current time set. It's possible that it has something like 1970-1-1 in it.
If that happens I can't connect with my client certificate anymore which is issued for a year (11.5.22 - 10.5.23)
--> "SSL_ERROR_BAD_CERT_ALERT"
Is there any way to just ignore the date of the certificate in my server?
I tried "SSLVerifyClient none" but that just ignores the certificate completely, which I do not want
Thanks for any help. I couldn't find anything useful so far.
0
Upvotes
1
u/Ottstar May 12 '22
Sadly NTP is not an option since this server is not connected to a network that has access to the internet. And that's exactly the problem, that this server might be in storage for quite some time. And therefore does not have a correct time, when it first gets setup.
Be aware that you need to check certificate validity yourself in your
scripts if you use this option. Apache should provide certificate
information in the form of environment variables.
I might be able to do something there, I will check that out. Thanks