How to install an SSL certificate in Windows and Apache

Source: Internet
Author: User
Tags openssl zip zip folder ssl certificate


I. Apache requires three configuration files to install the SSL certificate:

(Tip: back up the server configuration file you want to modify before installing the certificate)

Export root_bundle.crt, 2_domainname.com.crt, and 3 _ domainname.com. key.

Note: These three certificate files are in the for Apache.zip folder,
For example, export root_bundle.crt is the root certificate chain, 2_domainname.com.crt is the public key, and 3 _ domainname.com. key is the private key. (The certificate public key and private key file are generally named after your domain name. The certificate suffix crt and cer are of the same nature)

2. After the certificate is merged, install the certificate.

1. Download and install apache with openssl. Apache requires three configuration files to install the SSL certificate:

Apache versions such as: httpd-2.2.22-win32-x86-openssl-0.9.8t.zip

2. Configure the httpd. conf file under Apache.
# LoadModule ssl_module modules/mod_ssl.so
# Include conf/extra/httpd-ssl.conf delete the configuration statement at the beginning of the line comment symbol "#"

3. Modify the httpd-ssl file in apache.

(1) open the httpd-ssl.conf file in the conf/extra directory under the apache installation directory, find the following configuration statement in the configuration file:

A). SSLCertificateFile/usr/local/apache/ssl/public. cer
(Configure the public key of the server certificate (2_domainname.com.crt) to this path and replace public. crt );

B). SSLCertificateKeyFile/usr/local/apache/ssl/private. key
(Configure the server certificate private key (3_domainname.com.key) to this path and replace private. key );

C). # SSLCertificateChainFile/usr/local/apache/ssl/ca. cer
(Delete the annotator "#" at the beginning of the line, configure the certificate (1_root_bundle.crt) to this path, and replace ca. cer ).

(2) save and quit, and restart Apache.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.