I tried to use SoftHSM in another project than OpenDNSSEC. You can judge if that would be taking a risk but I understood that SoftHSM was meant as a general HSM replacement.
I ran into trouble trying to generate an OpenPGP key pair; PKCS #11 does not have a certificate type for OpenPGP, so I tried to C_CreateObject a CKO_OBJECT with the needed information, with a CKA_LABEL to find it and a CKA_APPLICATION set to OpenPGP and a CKA_VALUE with the OpenPGP public key packet. This was rejected because SoftHSM does not support CKO_OBJECT.