I'm new to this certificate and public keys. So I've a certificate. I exported as .pem. I opened it in textEdit and it looks like the below.
I've used below command to see what this certificate contains.
openssl x509 -inform pem -text -in test1.pem
then I see some data like issuer, company etc. Also I see public key info. which looks like below.
Now what is my public key here. Modulus is something product of the 2 chosen large prime numbers. In the below it is separated with xx: xx: xx: .. etc. is it a continuous large number in hex format? exponent should be the E with which we encrypt.
Finally, How to see only encoded public key from a certificate? How do we take sha1 hash to hash the public key?