Open rafaelri opened 6 years ago
I tried both the environment variables mentioned on https://stackoverflow.com/questions/30405867/how-to-get-python-requests-to-trust-a-self-signed-ssl-certificate as the ones mentioned on https://superuser.com/questions/54615/how-to-install-a-ca-key-self-signed-ssl-on-ubuntu (copying to /etc/ssl/certs and running c_rehash) but none of them worked.
Hi, similar error here. I am using Ubuntu 18.04 and followed instructions for installing snxconnect, but regarding the following dependencies, referred in the instructions:
I had to do:
then I can do snxconnect --help but when I try to connect, with the following command
sudo snxconnect -H [host-ip] -U [user] -F [p12-certificate-path]
I get this error:
Traceback (most recent call last):
File "/usr/local/bin/snxconnect", line 4, in
File "build/bdist.linux-x86_64/egg/snxconnect.py", line 555, in main File "build/bdist.linux-x86_64/egg/snxconnect.py", line 184, in login File "build/bdist.linux-x86_64/egg/snxconnect.py", line 271, in open File "/usr/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 447, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open context=self._context) File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open raise URLError(err) urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>
Any hit? Thank you in advance Vincenzo
I believe that this is a problem with selfsigned certificates, already tried adding in Ubuntu 18.03 and Debian 9 with ca-certificates, but it did not work
Also tried installing certifi and replacing certifi ca.crt file with the one in the system but it didnt work either.
This may only be solved by adding an option of a CA file to the urllib2, I do not know how to to this in a short notice in python, but someone who is used to the libraries can fix this in a couple of hours or less.
i am faceing same issue . i think solution is to disable SSL checking SSL we set in ssl verify_mode = ssl.CERT_NONE of atleast have a flag which can do it.
Hi all,
I am trying to use snxvpn and it is complaining about the VPN certificate (that I guess is self signed). I am wondering if there is any way I can bypass the certificate checking.