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?