Skip to content

Customizing SSL ciphers #2030

Answered by tomchristie
splotsh asked this question in Q&A
Jan 13, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

You can pass a custom ssl_context to the client instance.

You probably need something like this?...

import certifi
import ssl
import httpx

def custom_ssl_context()
    context = ssl.create_default_context()
    context.load_verify_locations(certifi.where())
    context.set_ciphers(...)
    return context

ssl_context = custom_ssl_context()
client = httpx.Client(ssl_context=ssl_context)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by splotsh
Comment options

You must be logged in to vote
2 replies
@tomchristie
Comment options

@splotsh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants