Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (71)
EC Keys (2053)
Firefox (30)
General (10)
Google Chrome (25)
Intermediate CA (152)
Java VM (29)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (21)
OpenSSL (236)
Other (7)
Portecle (38)
Publishers (5949)
Revoked Certificates (16)
Root CA (85)
RSA Keys (4865)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "rsautl -encrypt" - Encryption with RSA Public Key
How to encrypt a file with an RSA public key using OpenSSL "rsautl" command?
✍: FYIcenter.com
If you want to encrypt a file with an RSA public in order to
send private message to the owner of the public key,
you can use the OpenSSL "rsault -encrypt" command as shown below:
C:\Users\fyicenter>type clear.txt The quick brown fox jumped over the lazy dog. C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> rsautl -encrypt -pubin -inkey my_rsa_pub.key -in clear.txt -out cipher.txt OpenSSL> exit C:\Users\fyicenter>dir *.txt 128 cipher.txt 45 clear.txt
Options used in the "rsautl" command are:
Note that the encrypted data, cipher.txt, can only be decrypted by the owner of the public key with his/her matching private key.
⇒ OpenSSL "rsautl -decrypt" - Decryption with RSA Private Key
⇐ OpenSSL "rsautl" Command Options
2017-06-11, 12485👍, 0💬
Popular Posts:
Certificate summary - Owner: www.microsoft.com, MSCOM, Microsoft Corporation, L=Redmond, ST=WA, US I...
What are file name extensions used for certificates? I see .cer files on my Windows computer. Most c...
Certificate summary - Owner: *.etsy.com, Ops, Etsy, L=Secaucus, ST=New Jersey, US Issuer: Cybertrust...
How to generate a new EC key pair with a longer key size using OpenSSL "genpkey" command? If you nee...
Certificate Summary: Subject: *.facebook.com Issuer: VeriSign Class 3 Secure Server CA - G3 Expirati...