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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -