Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (922)
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 (3189)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2561)
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, 9246👍, 0💬
Popular Posts:
What certificates are included in the Java default trusted certificate keystore file: "cacerts"? For...
How to decrypt a large file with an RSA private key using OpenSSL "rsautl" command? I received a lar...
How to view details of trusted root CA certificate on my Android device? You can view details of a t...
Certificate Summary: Subject: UTN - DATACorp SGC Issuer: UTN - DATACorp SGC Expiration: 2019-06-24 1...
Certificate summary - Owner: GeoTrust SSL CA, "GeoTrust, Inc.", US Issuer: GeoTrust Global CA, GeoTr...