I have a cron set up to update certbot. It mails a deprecation warning every day. How do I stop the deprecation warning?
Cron <root@ip-99-99-99-99> /root/certbot-auto renew --quiet
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
I tried to file a bug report, but they closed it. https://github.com/certbot/certbot/issues/3984
I tried to install Python2.7 but I can't get certbot to run with Python2.7.
[root@kizbit ~]# scl enable python27 "python --version"
Python 2.7.8
[root@kizbit ~]# scl enable python27 "/root/certbot-auto renew"
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
It still uses Python 2.6 and still produces a warning. I also tried:
[root@kizbit ~]# scl enable python27 "python /root/certbot-auto renew"
File "/root/certbot-auto", line 18
if [ -z "$XDG_DATA_HOME" ]; then
^
SyntaxError: invalid syntax
WITH 2.6 IT WORKS BUT GIVES DEPRECATION:
[root@kizbit ~]# /root/certbot-auto renew
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
Centos 6.8, certbot 0.12.0