Generate RSA public/private key pair
Generate private key:openssl genrsa -out private_key.pem 1024Convert private key to PKCS8 format:
openssl pkcs8 -topk8 -in privkey.pem -nocryptGenerate public key:
openssl rsa -pubout -in private_key.pem -out public_key.pemRead Base64 Encoded private key
openssl rsa -text -in private_key.pem
Generate Self-Signed certificate
openssl req \ -x509 -nodes -days 365 \ -newkey rsa:1024 -keyout private_key.pem -out cert.pem
No comments:
Post a Comment