I can't find anywhere details on how to fingerprint a public RSA key in PKCS1 format.
There are a lot of examples on the internet on how to fingerprint an RSA public key in openssh format using
ssh-keygen -lf id_rsa.pub but in my application I am receiving a public key in PCKS1 format and even if I can remove the
-----BEGIN RSA PUBLIC KEY----- and
-----END RSA PUBLIC KEY----- parts, base64 decode the contents and hash the resulting data, I can't find an example on how to verify this hash/fingerprint using openssl or ssh-keygen.
What am I doing wrong?