Categories:
Firefox (32)
General (8)
Google Chrome (25)
Intermediate CA (157)
Java VM (20)
JDK Keytool (25)
Microsoft CertUtil (26)
Mozilla CertUtil (18)
OpenSSL (237)
Other (17)
Portecle (38)
Public Private Key (729)
Publishers (834)
Revoked Certificates (21)
Root CA (89)
Tools (45)
Tutorial (8)
What Is (21)
Windows (128)
Tools & 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.
2017-06-11, 826👍, 0💬
Popular Posts:
Certificate Summary: Subject: signin.ebay.com Issuer: VeriSign Class 3 Extended Validation SSL CA Ex...
Certificate summary - Owner: Baltimore CyberTrust Root, CyberTrust, Baltimore, IE Issuer: GTE CyberT...
Certificate Summary: Subject: WWW.ICQ.COM Issuer: VeriSign Class 3 Secure Server CA - G3 Expiration:...
Certificate Summary: Subject: Chambers of Commerce Root Issuer: Chambers of Commerce Root Expiration...
How to import a certificates to a system certificate store using "certmgr.exe" tool? You can import ...