I updated my server OS to the latest. I use Centos 9 stream. I ran a 'dnf update' command. Since then, when I run any 'certbot' command, it is showing warning.
/snap/certbot/4182/lib/python3.12/site-packages/certbot/ocsp.py:238: CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated. Please switch to this_update_utc.
if not response_ocsp.this_update:
/snap/certbot/4182/lib/python3.12/site-packages/certbot/ocsp.py:240: CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated. Please switch to this_update_utc.
if response_ocsp.this_update > now + timedelta(minutes=5):
/snap/certbot/4182/lib/python3.12/site-packages/certbot/ocsp.py:242: CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated. Please switch to next_update_utc.
if response_ocsp.next_update and response_ocsp.next_update < now - timedelta(minutes=5):
How can I fix this? I Googled but not much luck.
This has to be fixed? Or Can I go along with the warning?
This is a known problem but is best posted at the github for Certbot
See this thread but you may want to start a new one to gain greater attention to this. This thread started with a pip install of Certbot but this post and others describe the problem with Certbot snap install for v3.0