Check Key Size from a Private Key

Linux command that retrieves a key size from a file with the private key:

$ openssl rsa -in goyun.private.key -text -noout | grep "Private-Key"
Private-Key: (2048 bit)

Comments