OpenSSL 3 · Keys and signing requests
Extract the public key
Write the public key from a private key.
openssl pkey -in private.key -pubout -out public.key
Official OpenSSL 3 documentation
More keys and signing requests commands
- Check the OpenSSL version
- Generate an RSA private key
- Generate an elliptic curve key
- Create a certificate signing request
- Inspect a CSR
All keys and signing requests commands · OpenSSL 3 cheatsheet