Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

PhpStudy installation ssl Certificate tutorial

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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!

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.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report