Hello,

Has anyone a port of SoftHSM v2.1.x as a Work-In-Progress?

In August last year, there was a discussion about security/softhsm
(currently v1.3.7) before v2.x was released
 http://comments.gmane.org/gmane.os.openbsd.ports/74967

I am trying to use security/softhsm with SSH (ssh-key-gen, ssh-agent)
in -current, but failed to add private RSA keys in PKCS8 format to
SoftHSM 1.3.7:

 softhsm --init-token --slot 0 --label "myToken1"
 ssh-keygen -e -m PKCS8 -f .ssh/id_rsa > .ssh/rsa.pem
 softhsm --import .ssh/rsa.pem --slot 0 --label "myToken1" --id A1B2 --pin 1234
Decoding error: PKCS #8 private key decoding failed
Error: Perhaps wrong path to file, wrong file format, or wrong PIN to
file (--file-pin <PIN>).

Before digging into sources, I thought it may be worth trying SoftHSM
2.1.0 as PKCS#11 provider.

Thank you,
Rolf

Reply via email to