Notes related to using public/private keys to encrypt data.
This section generates a new private key and extracts the public key.
openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:4096
openssl rsa -pubout -in private_key.pem -out public_key.pem