Disable TLS warning for ES

This commit is contained in:
Mark Veidemanis 2022-02-17 22:10:31 +00:00
parent dec4d5a422
commit dfe02f557c
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 5 additions and 1 deletions

View File

@ -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",
)