简体   繁体   中英

Extract public key from cer file to use in nusoap

Can someone tell me how can I extract a public keu in .pem format from a .cer file ? I'm trying to configure webservice over https with nusoap.

Tks, ED

openssl x509 -inform der -in <certificate> -noout -pubkey

应该打印出公钥。

Any time I need to convert certificate formats I like to hop on my Linux shell and use the openssl CLI.

Take a look at this page for common openssl commands. You will be most interested in the one titled "Convert DER (.crt .cer .der) to PEM".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM