ipsec pki --pub¶
Synopsis¶
pki --pub [--in file] [--type rsa|ecdsa|pkcs10|x509] [--outform der|pem|pgp]
--help (-h) show usage information
--in (-i) input file, default: stdin
--type (-t) type of credential, default: rsa
--outform (-f) encoding of extracted public key
--debug (-v) set debug level, default: 1
--options (-+) read command line options from file
Description¶
Extract the public key from a private key, PKCS#10 certificate request or X.509 certificate
Examples¶
- Extract the public key from an RSA private key
pki --pub --in myKey.der > myPub.der
- Extract the public key from an ECDSA private key
pki --pub --in myKey.der --type ecdsa > myPub.der
- Extract the public key from a PKCS#10 certificate request
pki --pub --in myReq.der --type pkcs10 > myPub.der
- Extract the public key from an X.509 certificate
pki --pub --in myCert.der --type x509 > myPub.der