ssl_certificates error: Unable to find certificate expiration date
Closed this issue · 5 comments
Bug description
When I run the script, I get ssl_certificates error: Unable to find certificate expiration date
in the ssl section
Reproduction steps
Steps to reproduce the behavior:
- configure an ssl certificate in the configuration file:
ssl_certificates: enable: true certs: ...: /etc/letsencrypt/live/.../cert.pem
- Run
panda-motd
Expected behavior
I expect valid until <date>
Log file
/var/log/panda-motd.error.log
exists but it's empty?
OS Information
- OS: Arch 5.10.14-arch1-1
Configuration File
https://gist.github.com/MarcelRobitaille/19541379a55f19e21a8d8774a55662bf
Hey, sorry this isn't working for you. Can you post the output of this command? Preferably authenticated as root? (I assume your MOTD builder runs as root, been a while since I used Arch):
openssl x509 -in <SSL_CERT_PATH> -dates
Thanks for your answer. That gives me:
notBefore=Jan 1 04:04:35 2021 GMT
notAfter=Apr 1 04:04:35 2021 GMT
-----BEGIN CERTIFICATE-----
censored
-----END CERTIFICATE-----
Found a shortcoming in the regex parsing of that output, it wasn't handling the extra white space after the month name properly. Should have a new release cut shortly!
Alright v0.0.12 is released, you should be able to update now.
Yeah that's strange. I noticed that. Thank you so much!