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

How to use openssl providers? #12525

Open
MorningLightMountain713 opened this issue Feb 27, 2025 · 1 comment
Open

How to use openssl providers? #12525

MorningLightMountain713 opened this issue Feb 27, 2025 · 1 comment

Comments

@MorningLightMountain713

Hi there,

I have a pkcs11 provider set up for openssl. This connects to a yubihsm.

davew@hsm:~$ openssl list -providers
Providers:
  default
    name: OpenSSL Default Provider
    version: 3.3.1
    status: active
  pkcs11
    name: PKCS#11 Provider
    version: 3.3.1
    status: active

I am able to create a certificate like so:

openssl req -new -x509 -days 3650 -subj '/CN=Test Signature Key/' -sha256 -key 'pkcs11:token=YubiHSM;object=Signing%20Key;pin-value=0001example' -out signing.crt

I would like to do this programatically. How can I sign the cert with pyca/cryptography using the openssl provider?

Thanks

@alex
Copy link
Member

alex commented Feb 27, 2025 via email

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

No branches or pull requests

2 participants