openssl - X.509: Private / Public Key -
we're trying implement functionality of web-service 1 of our partners. now, content beeing transmitted, should encrypted public key, have provide.
the security-specification says public-certificate has x.509 standard. doesn't x.509 rely on private / public key method? because 1 .pem file, containing private key, , certificate, no public key, using following command:
openssl req -new -x509 -days 365 -nodes -out ./cert.pem -keyout ./cert.pem
do have modify command in order create private , public key?
the basics command line steps generate private , public key using openssl follow
openssl genrsa -out private.key 1024 openssl req -new -x509 -key private.key -out publickey.cer -days 365 openssl pkcs12 -export -out public_privatekey.pfx -inkey private.key -in publickey.cer
step 1 – generates private key
step 2 – creates x509 certificate (.cer file) containing public key upload when registering private application (or upgrading partner application).
step 3 – export x509 certificate , private key pfx file. if chosen wrapper library uses .pem file sign requests step not required.
hope helps! this answer explains different file extensions.
Comments
Post a Comment