openssl x509 public key code example
Example 1: get public key from certificate
openssl x509 -inform der -in certificate.der -pubkey -noout > public_key.pem
Example 2: openssl x509 certificate
openssl x509
openssl x509 -inform der -in certificate.der -pubkey -noout > public_key.pem
openssl x509