migros / fotoobo

The mighty Fortinet toolbox
https://fotoobo.readthedocs.io/
GNU Lesser General Public License v3.0
17 stars 2 forks source link

Traceback on vault certificate error #174

Closed patrikspiess closed 10 months ago

patrikspiess commented 10 months ago

When the CA chain for the vault service is not present there is a certificate error which leads to a traceback. The error shown is:

requests.exceptions.SSLError: HTTPSConnectionPool(host='...', port=443):
Max retries exceeded with url: /v1/auth/approle/login 
(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)')))

There should be an option to ignore SSL errors (which of course is not recommended due to lack of security)