Extract The Modulus From Your Private Key
- Extract public key from the private key file:
To generate a MODULUS, first you need to extract the public key from your RSA private key:
openssl rsa -in <file_name_key>.key -outform PEM -pubout -out <file_name_public>.pub
info
Note: EX00000298 is used for the filename during public key extraction for illustration purpose only.
- Sample of Public Key
- Extract modulus from the public key
The modulus is in the public key and you can get them using the following command:
openssl rsa -pubin -in <file_name_public>.pub -text -noout