Openssl uses the DSA algorithm to generate a signature instance. This article introduces how to use the DSA algorithm to generate a signature instance based on openssl. the method for generating a signature is simple. it is complicated to understand
In the day-to-day system management work, need to do some encryption and decryption work, through the OpenSSL toolkit will be able to complete our many needs!1. OpenSSL RSA encryption and decryptionRSA is an asymmetric encryption method based on the
OpenSSL is an open source SSL implementation. The simplest and most important application based on the OpenSSL directive is to use Req, CAs, and X509 to issue a certificate.OpenSSL provides command-line options and interactive two ways to perform
Command:
openssl> dgst-dss1-sign c.pri-out Signature.bin s.txt
ExplainC.pri is the private key file generated by the DSA algorithmS.txt is the original of the signature.Signature.bin is the generated signature file
PHP can use the following
Command:
openssl> dgst-dss1-sign c.pri-out Signature.bin s.txt
Explain
C.pri is the private key file generated by the DSA algorithm
S.txt is the original of the signature.
Signature.bin is the generated signature file
PHP can use the following
About OpenSSL OpenSSL
SSL is an abbreviation for the Secure Socket Layer protocol, which provides covert transmission over the Internet. Netscape Company introduced the SSL protocol standard at the same time as the first web browser, there are now 3.
Digital signature is only the sender of information can be produced by others can not forge a string of numbers, this string is also the sender of information to send information authenticity of a valid proof. The combination of asymmetric key
1. Summary of information and digital signatureInformation Summary: Processing the data to obtain a fixed length of the results, its characteristics input:1, the output length is fixed. That is, the output length is independent of the input length.2,
OpenSSL introduction and compilation steps on Windows, Linux, and Mac systems
OpenSSL Introduction: OpenSSL is a powerful Secure Socket Layer password library, which includes major cryptographic algorithms, common keys, certificate encapsulation
The X.509 Certificate corresponds to the system. Security. cryptography. x509certificates. x509certificate2 class in. net. X509certificate2 supports RSA and DSA encryption. The RSA encryption method has been clearly stated on msdn, but the DSA
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.