9 lines
267 B
Python
9 lines
267 B
Python
import ssl
|
|
import httpx
|
|
from config import settings
|
|
|
|
ctx = ssl.create_default_context(cafile=settings.CA_CERT)
|
|
ctx.load_cert_chain(certfile=settings.CLIENT_FULLCHAIN, keyfile=settings.CLIENT_PRIVKEY)
|
|
|
|
ssl_transport = httpx.AsyncHTTPTransport(verify=ctx, http2=False)
|