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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to configure SSL WEB for CentOS7 self-generated certificates. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
# install Apache [root@server0 ~] # yum-y install httpd mod_ssl # add firewall rules [root@server0 ~] # firewall-cmd-- permanent-- add-server=80/tcp [root@server0 ~] # firewall-cmd-- permanent-- add-server=443/tcp [root@server0 ~] # firewall-cmd-- permanent-add-server=8080/tcp;firewall-cmd-- reload [root@server0 ~] # systemctl restart httpd Systemctl enable httpd# configure selinux security context [root@server0 ~] # semanaga port-a-t http_port_t {80memt 443 http_port_t 8080} [root@server0 ssl] # mkdir / etc/httpd/ssl Cd / etc/httpd/ssl# generate KEY [root@server0 ssl] # openssl genrsa-des3-out vqiu.cn.key 204de-password [root@server0 ssl] # openssl rsa-in vqiu.cn.key-out vqiu.cn.key# generate certificate issuance request and certificate key [root@server0 ssl] # openssl req-new-nodes-key vqiu.cn.key-out vqiu.cn.csr# generate a certificate through csr Take vqiu.cn as an example [root@server0 ssl] # openssl x509-req-days 3650-in vqiu.cn.csr-signkey vqiu.cn.key-out vqiu.cn.crt# after generating crt Csr can delete [but skip] # rm vqiu.cn.csr-f [root@server0 ssl] # cat / etc/httpd/conf.d/vqiu.cn.confListen 443 httpsServerName server0.vqiu.cnDocumentRoot / var/www/htmlSSLEngine onSSLProtocol all-SSLv2SSLCipherSuite Higg Med _ IUM _ MD5SSLCertificateFile / etc/httpd/ssl/vqiu.cn.crtSSLCertificateKeyFile / etc/httpd/ssl/vqiu.cn.key# to generate a test page [root@server0 ssl] # echo "test". > / var/www/html/index.html# restart the httpd service [root@server0 ssl] # systemctl restart httpd on "how CentOS7 generates certificates and configures SSL WEB", that's all. Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
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.