vhsantos / centreon_report_to_pdf

Make a PDF from CSV centreon data and sent it by email.
8 stars 4 forks source link

SSL Certificate Verify Failed #2

Closed Meta-Don closed 2 years ago

Meta-Don commented 3 years ago

Hi,

I have a related issue to #1 concerning SSL certificates. My Centreon server has a verified certificate (not autosigned) but the handshake outputs this (I censored the domain and token string):

requests.exceptions.SSLError: HTTPSConnectionPool(host='centreon.mydomain.com', port=443): Max retries exceeded with url: /centreon/index.php?autologin=1&useralias=dashboard-only&token=token (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

Because I was in a testing environment, I tried bypassing the validation through Settings.py > centreon_session.get(LOGIN_URL, verify = False) which brought another error "Can't determinte the type of report on the CSV.". And I don't have time to dig in the code any deeper.

Is there anything you can do?

Thanks in advance, Meta-Don