openssl - How to extract public key from certificate in Mac? -


i given certificate , tried extract public key out of it.

my certificate like

-----begin certificate-----  snfmfgfdgiig .... -----end certificate----- 

and saved test.cer.

i have looked online , tried extract public key.

i tried:

openssl x509 -inform pem -in test.cer -pubkey -noout > publickey.pem 

but getting

unable load certificate 56091:error:0906d06c:pem routines:pem_read_bio:no start line:/buildroot/library/caches/com.apple.xbs/sources/openssl098/openssl098-59.60.1/src/crypto/pem/pem_lib.c:648:expecting: trusted certificate 

i not familiar process , hoping here can me out. much!


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -