Is it possible to configure OpenXPKI with AWS CloudHSM Dynamic Engine?

I tried something like this in crypto.yaml:

casigner:
    backend: OpenXPKI::Crypto::Backend::OpenSSL
    key: /etc/openxpki/ca/subca_private_ref.pem
    engine: cloudhsm
    engine_section: |
      engine_id = cloudhsm
      MODULE_PATH = /opt/cloudhsm/lib/libcloudhsm_openssl_engine.so
      #PIN = __PIN__
      init = 0
    engine_usage: 'ALWAYS'
    key_store: OPENXPKI
    shell: /opt/openssl/bin/openssl
    randfile: /var/openxpki/rand
    wrapper: ''
    secret: signer

..but that fails to the fact it tries to download a perl module called
cloudhsm.pm. 

The main difference to PKCS11 is that the private key reference is a fake
private key pem file. There are no options to be passed, the HSM pin is
expected to be in env variable.
In practice I believe you need to just pass "-engine cloudhsm" to openssl
for thus engine to work.

Br,
//HS





_______________________________________________
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to