Categories:
DH Keys (148)
DSA Keys (201)
EC Keys (292)
Firefox (32)
General (13)
Google Chrome (25)
Intermediate CA (155)
Java VM (20)
JDK Keytool (25)
Microsoft CertUtil (26)
Mozilla CertUtil (18)
OpenSSL (237)
Other (17)
Portecle (38)
Publishers (1174)
Revoked Certificates (33)
Root CA (87)
RSA Keys (2024)
Tools (47)
Tutorial (7)
What Is (21)
Windows (129)
Collections:
Other Resources:
OpenSSL "rsautl -sign" - RSA Signature Generation
What is the purpose of the OpenSSL "rsautl -sign" command? Can I use it to sign a document?
✍: FYIcenter.com
Yes, you can use OpenSSL "rsautl -sign" command to sign a document.
But you need other OpenSSL commands to generate a digest from the document first
as shown in the following test:
C:\Users\fyicenter>dir \windows\system32\notepad.exe 07/09/2015 01:42 PM 179,712 notepad.exe C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> dgst -sha1 -binary -out sha1.dgt \windows\system32\notepad.exe OpenSSL> rsautl -sign -inkey my_rsa.key -in sha1.dgt -out sha1_signed.dgt OpenSSL> pkey -in my_rsa.key -pubout -out my_rsa_pub.key
OpenSSL commands used in this test are:
You can now send out notepad.exe, sha1_signed.dgt, and my_rsa_pub.key, as a "signed" document.
⇒ OpenSSL Verify Signed Documents with RSA Keys
⇐ OpenSSL Signing Documents with RSA Keys
2017-04-04, 1491👍, 0💬
Popular Posts:
How to get a list of extended options supported by the "makecert.exe" command? I want to know more o...
Why I am getting an error: "CryptoException: Could not save keystore"? when exporting my 4096-bit ke...
How to manage certificates in Mozilla Firefox browser? Where is the Certificate Manager in Firefox? ...
Certificate Summary: Subject: GlobalSign Root CA Issuer: GlobalSign Root CA Expiration: 2028-01-28 1...
How to generate a DER file with a single data field using the OpenSSL "ans1parse" command? You can u...