openssl can simply extract modulus (aka the PubKey) from certificates and rsa keys with:
openssl rsa -modulus < rsa.key
openss req -modulus < cert.csr
openssl can simply extract modulus (aka the PubKey) from certificates and rsa keys with:
openssl rsa -modulus < rsa.key
openss req -modulus < cert.csr