Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulremanan/fa6bffe4ba3bb01d8651cabb0efc11c2 to your computer and use it in GitHub Desktop.
Save rahulremanan/fa6bffe4ba3bb01d8651cabb0efc11c2 to your computer and use it in GitHub Desktop.
Encrypt a message using the end-point server private key
!cat ./message.txt | openssl rsautl -sign -inkey ./self_signed_cert.key -in - -out - | base64 > ./message.priv.enc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment