Home  >  Article  >  Backend Development  >  A brief analysis of PKI encryption and decryption OpenSSL_PHP tutorial

A brief analysis of PKI encryption and decryption OpenSSL_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:01:44691browse

Click to download OpenSSL

What should be distinguished between window and linux

Unzip the file

Double click:

Win32OpenSSL-0_9_8l_95895.exe

After installation is complete

OpenSSLbinopenssl.exe

Enter the command to generate a private key

genrsa -out private-rsa.pem

Enter the command to generate the public key

rsa -in private-rsa.pem -pubout -out public-rsa.cer

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327970.htmlTechArticleClick to download the decompressed file to distinguish between OpenSSL window and Linux. Double-click: Win32OpenSSL-0_9_8l_95895.exe After installation, OpenSSLbinopenssl.exe Enter the command to generate the private key genrsa -out...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn