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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -