From f4b75e4b5ba6998481536548731136300eb46283 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 17 Feb 2022 22:10:31 +0000 Subject: [PATCH] Disable TLS warning for ES --- handler/transactions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/handler/transactions.py b/handler/transactions.py index 9f5ddb2..75f3b96 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -8,6 +8,10 @@ from string import ascii_uppercase from elasticsearch import Elasticsearch from datetime import datetime +# TODO: secure ES traffic properly +import urllib3 +urllib3.disable_warnings() + # Project imports from settings import settings from db import r @@ -29,7 +33,7 @@ class Transactions(object): f"https://{settings.ES.Host}:9200", verify_certs=False, basic_auth=(settings.ES.Username, settings.ES.Pass), - ssl_assert_fingerprint=("6b264fd2fd107d45652d8add1750a8a78f424542e13b056d0548173006260710"), + #ssl_assert_fingerprint=("6b264fd2fd107d45652d8add1750a8a78f424542e13b056d0548173006260710"), ca_certs="certs/ca.crt", )