Openssl Tool Returns Unable to Print EC Key in FIPS Mode

When FIPS mode is enabled on a system, the openssl tool is unable to print an Elliptic Curve (EC) key, when using the following command:

openssl ec -in ecp256.pem -noout -text

The command fails with the message:

unable to print EC key

Explicitly loading the fips provider when running the command works around this issue, for example:

openssl ec -provider=fips -in ecp256.pem  -noout -text

(Bug ID 37290712)