Get the App
SLTechnology News&Howtos  ›  Network Security  › 

PhpStudy installation ssl Certificate tutorial

Shulou Source: shulou.com Published: 2022-06-01 01:10:15 09月30日 Update

This article mainly introduces "phpStudy install ssl certificate tutorial". In daily operation, I believe many people have doubts about installing ssl certificate tutorial in phpStudy. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "phpStudy installation ssl Certificate tutorial". Next, please follow the editor to study!

First, modify the httpd.conf configuration file under the apache directory 1, # LoadModule ssl_module modules/mod_ssl.so delete the configuration statement comment symbol "#" 2 at the beginning of the line, add a reference statement Include conf/vhostsssl.conf II, 1, and create a vhostsssl.conf configuration file in the conf folder. 2. Edit the vhostsssl.conf file The following content is added: Listen 443 SSLEngine on SSLProtocol all-SSLv2-SSLv3 SSLCipherSuite Higg Higg Medi Medi SSLCertificateFile "D:\ phpStudy\ SSL\ 2_trustauth.cn.crt" SSLCertificateKeyFile "D:\ phpStudy\ SSL\ trustauth.cn.key" SSLCertificateChainFile "D:\ phpStudy\ SSL\ 1_root_bundle.crt" DocumentRoot "c:\ WWW\ jsdxnb" Options + Indexes + FollowSymLinks + ExecCGI AllowOverride All Order allow Deny Allow from all Require all granted where SSLCertificateFile refers to certificate public key SSLCertificateKeyFile refers to certificate private key SSLCertificateChainFile refers to root certificate 3. Phpstudy configuration specifies path access https (I did not configure this step If not, you can configure it in the .htaccess file. RewriteEngine on RewriteBase / RewriteCond% {SERVER_PORT}! ^ 443$ RewriteRule ^. * $https://%{SERVER_NAME}%{REQUEST_URI} [LMague R] IV. Save exit and restart Apache. Ps:Apache can not start, usually the configuration file is wrong, please check patiently. Generally can not start because of the previous configuration of SSL or file configuration error! General directory: phpStudy installation software installation directory, C:\ phpStudy\ Apache\ conf the following is the alternate code, this can also be used. Listen 443

SSLEngine On

SSLCertificateFile "D:/ssl/2_www.trustauth.cn.crt"

SSLCertificateKeyFile "D:/ssl/3_www.trustauth.cn.key"

SSLCertificateChainFile "D:/ssl/1_root_www.trustauth.cn.crt"

#.

DocumentRoot "D:/APP"

ServerName xs.xingshili.vip:443

At this point, the study of "phpStudy installation ssl Certificate tutorial" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Configuration files certificates tutorials studies directories more statements help no no utility patience next code public key content folders articles methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Tech Info vpn OPPO Reno Microsoft