Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (871)
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 (3115)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2509)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
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, 6555👍, 0💬
Popular Posts:
How to view the ASN.1 structure of an DSA public key using the OpenSSL "asn1parse" command? You can ...
How to add a certificate into "cert8.db" file using Mozilla "certutil" tool? I have a certificate fi...
Why I am getting the "Your connection is not private" error screen in Google Chrome? I am using a we...
How to use RSA PKCS#1 v1.5 padding with OpenSSL "rsautl" command? I was told to encrypt a password u...
Certificate summary - Owner: EMAILADDRESS=eDell_Produ ction_Management@dell.co m,www.dell.com (Prod),...