diff --git a/templates/rsa-gen.html b/templates/rsa-gen.html index 86fe5b0..65b6f40 100644 --- a/templates/rsa-gen.html +++ b/templates/rsa-gen.html @@ -85,13 +85,13 @@

Derive Public Key

Encrypt Data

We can now use this key pair to encrypt and decrypt a file, data.txt.

-
$ openssl rsautl -encrypt -inkey public.pem -pubin -in data.txt -out data.txt.enc
+
$ openssl pkeyutl -encrypt -inkey public.pem -pubin -in data.txt -out data.txt.enc

Decrypt Data

Given the encrypted file from the previous step, you may decrypt it like so.

-
$ openssl rsautl -decrypt -inkey private.pem -in data.txt.enc -out data.txt
+
$ openssl pkeyutl -decrypt -inkey private.pem -in data.txt.enc -out data.txt