Skip to content

Using local cert file with PKCS#11 HSM private key #958

@pranavp-gad

Description

@pranavp-gad

I am trying to configure an OpenVPN client where the private key is stored on a Hardware Security Module (HSM) via PKCS#11, but the client certificate resides on the local disk.

My Goal:

Private Key: HSM (accessed via pkcs11-providers)

Client Certificate: Local file (e.g., /etc/openvpn/client.crt)

The Issue: Whenever I include both the pkcs11-id and the cert directives in my config, OpenVPN fails to start. It seems to expect that if I am using PKCS#11, the certificate must also be stored on the token.

Is there a way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions