Install Certificate di Apache

To install your SSL Certificate, perform the following steps:

1. Copy the certificate into a shell text editor and the file as "mydomain.crt"

Note: Copy the entire contents of the certificate from (and including) the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.

2. Copy the certificate to the Apache server directory in which you plan to store your certificates (by default: /usr/local/apache/conf/ssl.crt/ or /etc/httpd/conf/ssl.crt/)

Note: If you have a custom installation, please locate the server directory. 

3. Open the Apache httpd.conf file in a shell text editor. 

4. Locate the SSL VirtualHost associated with your certificate. Verify that you have the following 2 directives within this virtual host. Please add them if they are not present:

SSLCertificateFile /usr/local/apache/conf/ssl.crt/domainname.crt (or server.crt)
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/domainname.key (or server.key) 

Note that some instances of Apache will store Virtual Host information in a ssl.conf file. If your httpd.conf contains no Virtual Host information then you wil need to locate and amend the ssl.conf as above.

5. Save the changes and exit the shell editor. 

6. Start or Restart your apache web server using one of the following commands:
By default:
/usr/local/apache/bin/apachectl startssl
or
/usr/local/apache/bin/apachectl restart 

Other commands:
/usr/sbin/httpd startssl or restart
/usr/sbin/httpsd startssl or restart

  • 0 Pengguna Menemukan Ini Bermanfaat
Apakah ini membantu?

Related Articles

Install Certificate di Internet Information Services 4

To install your SSL Certificate, perform the following steps: Select "Key"/"Install Key...

Install Certificate di Internet Information Services 5

To install your SSL Certificate, perform the following steps: Open Internet Information Services...

Install Certificate di Internet Information Services 6

To install your SSL Certificate, perform the following steps: Open Internet Services Manager, or...

Install Certificate di cPanel

To install your SSL Certificate, perform the following steps: 1. Login to cPanel 2. Locate the...

Install Certificate di Plesk

To install your SSL Certificate, perform the following steps: 1. Login to the Plesk Control...