Saving key "ecdsa" failed: error in libcrypto error in FIPS Mode

Posted on

When attempting to create a Public/Private key pair using ssh-keygen with a passphrase I receive an error message "Saving key "ecdsa" failed: error in libcrypto error" and the key will not create. The command I am using is as follows and has been attempted in rsa format as well. The keys also have to be created in PEM format with a passphrase in order to be used by Nessus for scanning. Also if I ever leave the passphrase blank these commands work. Also on a FIPS mode disabled system these commands will work but a FIPS mode enabled system will not accept the keys with a passphrase.

I've tried both of these commands and others like it with no success:
ssh-keygen -f ecdsa-test -t ecdsa -b 521 -m pem
ssh-keygen -t ecdsa -m pem
ssh-keygen -t rsa -m pem

Attachments

Responses