Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples/http3_client.py: support to send client certificate to server? #498

Open
lastpepole opened this issue May 11, 2024 · 3 comments
Open

Comments

@lastpepole
Copy link

No description provided.

@lastpepole lastpepole changed the title support to send client certificate to server? examples/http3_client.py: support to send client certificate to server? May 11, 2024
@rthalley
Copy link
Contributor

if you just load the certificate in the QUIC config in the usual way, it should use it if asked by the server.

@lastpepole
Copy link
Author

@rthalley how to load client certificate with examples/http3_client.py?

@rthalley
Copy link
Contributor

examples/http3_client.py doesn't have command line support for it, but if you look at examples/http3_server.py and take this line:

    # load SSL certificate and key
    configuration.load_cert_chain(args.certificate, args.private_key)

That's how you do it.

To add this to the client you'd need the parser.add_argument() calls for -c and -k from the server code, though you can remove required=True as they are optional in the client. Since they are optional, you should only call load_cert_chain() if they are both not empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants