HomeFreeBSD

dumpon: provide diag info when `PEM_read_RSA_PUBKEY` fails

Description

dumpon: provide diag info when PEM_read_RSA_PUBKEY fails

This change modifies dumpon to print out the last error from OpenSSL
when PEM_read_RSA_PUBKEY fails. This allows end-users to diagnose why
reading in RSA pubkey files fails so they can adjust the usage to meet
the needs of the command.

MFC after: 1 week

Details

Provenance
ngieAuthored on May 27 2023, 1:02 AM
Parents
rGda8c3d21490f: tests: Fix format strings
Branches
Unknown
Tags
Unknown