Skip to content

Instantly share code, notes, and snippets.

@nijave
Created February 14, 2021 04:17
Show Gist options
  • Save nijave/cafcf6651ff082d0b2c0b7df3cb2d138 to your computer and use it in GitHub Desktop.
Save nijave/cafcf6651ff082d0b2c0b7df3cb2d138 to your computer and use it in GitHub Desktop.
OpenSSL Decrypt with x509 Public Key
encrypted_file=some_file
cert=certificate.pem
openssl x509 -pubkey -noout -in $cert -out certificate.key
openssl rsautl -pubin -inkey certificate.key -in some_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment