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

Question - X509Adapter client certificate and key #282

Open
danizen opened this issue Dec 19, 2019 · 0 comments
Open

Question - X509Adapter client certificate and key #282

danizen opened this issue Dec 19, 2019 · 0 comments

Comments

@danizen
Copy link

danizen commented Dec 19, 2019

In X509Adapter, the certificate and private key are provided as bytes. I have a much deeper problem where I need to use with Python certificates that rely on a smart card, using package PyKCS11 to dialog with the smart card via opensc or ActivClient's PKCS11 driver.

It looks like I'll have to provide my own SSL adapter for this, but it is a bit daunting, and I wanted to understand several things before I proceed:

  • The certificate and key provided to X509Adapter or through cert=('cert.pem', 'key.pem') are only used when the server requires client authentication, correct?
  • Is there any library that does this or makes it easier for Python that I've missed?
  • Is this possible to do by overriding methods in pyopenssl?
  • Where would I best look for help and information on implementing this correctly?
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

1 participant