Disable TLS warning for ES
This commit is contained in:
parent
ccfb4d65bd
commit
f4b75e4b5b
|
@ -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",
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue