Does apache support ssl?

步履不停
Release: 2019-07-27 09:23:17
Original
2382 people have browsed it

Does apache support ssl?

#apache supports installing ssl certificates.

Install the certificate:

1) Install the ssl module

# yum install mod_ssl -y
Copy after login

Ps: After the installation is completed, it will be in /etc/httpd/conf Generate an ssl.conf configuration file under .d/.

2) First create a directory to put the ssl certificate file

# mkdir /etc/httpd/ssl/
Copy after login

3) Upload the certificate file to the ssl directory

briefly.

4) Edit the ssl configuration file

# vim /etc/httpd/conf.d/ssl.conf

5) Modify the following lines and remove the preceding ones "#" comment;

DocumentRoot "/var/www/html" #Web page file path ServerName domain name: 443 #Change to your own domain name SSLEngine on #Enable SSL function SSLCertificateFile /etc/httpd/ssl/2_www .**.cn.crt #Fill in the certificate file path SSLCertificateKeyFile /etc/httpd/ssl/3_www.***.cn.key #Fill in the private key file path SSLCertificateChainFile /etc/httpd/ssl/1_root_bundle.crt #Fill in the certificate chain File path

6) Restart the server

# service httpd restart
Copy after login

7) Test access page

8) Query certificate details

PS:

1. After the certificate is installed successfully, access must use the domain name for which the certificate was applied;

2. A small lock sign is displayed, indicating that the certificate is successfully installed;

For more technical articles related to Apache, please Visit the Apache Tutorial column to learn!

The above is the detailed content of Does apache support ssl?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!