I am working with openssl to produce a FIPS compliant digital signature.
What type of digital signature I can use?
I used this command:
openssl genrsa -aes128 -passout pass:mypassphrase -out privkey.pem 2048
to generate a pem file but when I tried to load this as follows:
RSA rkey = PEM_read_bio_RSAPrivateKey( bio, 0, 0, (void)"mypassphrase");
I receive this error
error:060A80A3:digital envelope routines:FIPS_DIGESTINIT:disabled for fips'.
If I leave the passphrase off then everything works (in FIPS mode even) but that leaves my private key unencrypted.