maxisoft / Freenom-dns-updater

A tool to update freenom's dns records
MIT License
169 stars 49 forks source link

SSLError CERTIFICATE_VERIFY_FAILED #38

Open rikrdo89 opened 2 years ago

rikrdo89 commented 2 years ago

I installed fdp without issues using pip install freenom-dns-updater

Then, I attempted to update an IP address using fdu record update my@email.com mypassword mysite.com

and I get the error below:

requests.exceptions.SSLError: HTTPSConnectionPool(host='my.freenom.com', port=443): Max retries exceeded with url: /clientarea.php (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),))

liujunhui2 commented 1 year ago

It turns out that the package used a copy of ca certs located in /usr/lib/python2.7/site-packages/freenom_dns_updater/data/chain.pem which is outdated. ln -s /etc/pki/tls/cert.pem chain.pem (cd into the directory first) solved the problem.