Home >Operation and Maintenance >Apache >Does apache support ssl?

Does apache support ssl?

步履不停
步履不停Original
2019-06-29 13:52:582488browse

Does apache support ssl?

#apache supports installing ssl certificates.

Install the certificate:

1) Install the ssl module

# yum install mod_ssl -y

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/

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

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!

Statement:
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