In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article shows you how php opens openssl. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Method: 1, the configuration file before the "extension=php_openssl.dll" item ";" remove; 2, copy "php_openssl.dll", "ssleay32.dll" and other files to the "WINDOWS\ system32" directory; 3, restart the server.
Operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
After entering the 7.x era, PHP will no longer come with the mcrypt extension by default, and mcrypt will be replaced by a family of openssl_* functions. Therefore, for PHPer, it is necessary to learn about PHP's OpenSSL extension.
OpenSSL is a set of encryption tools for SSL/TLS protocol, which can be used to:
Generate a private key.
Generate a certificate, that is, a digitally signed certificate, which contains a public key that can be used to encrypt and decrypt data one-way. That is, data encrypted with a public key can only be decrypted using a private key. Data encrypted with a private key can be decrypted using a public key.
Summary of calculation information.
SSL/TLS client and server side tests.
Handle the encryption of S/MIME tags and messages.
So how does php turn on the openssl extension? Here's how to do it.
In most cases, openssl is not enabled. To enable it, you need to make the following simple settings:
1: first check whether extension=php_openssl.dll exists in the configuration file php.ini, remove the preceding comment';'if so, and add extension=php_openssl.dll if this line does not exist.
2: copy the three files: php_openssl.dll, ssleay32.dll and libeay32.dll under the php folder to the WINDOWS\ system32\ folder.
3: restart the apache or iis server
At this point, the openssl function is enabled.
The above is how php starts openssl. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.