Welcome to Global Trust 256 bit SSL Security Site.

  現在位置 : 技術資源 > 知識庫FAQ > SSL 憑證 > Thawte > 安裝憑證 > Apache-SSL / Apache ModSSL

技術 / 資訊搜尋 

Apache-SSL / Apache ModSSL

1. Save the certificate file

Copy your certificate into a text editor such as notepad/vi including the header and footer and save the certificate file as www.mydomain.com.crt. You should then have a text file that looks like this:

Make sure you have 5 dashes to either side of the BEGIN CERTIFICATE and END CERTIFICATE and that no white space, extra line breaks or additional characters have been inadvertently added.

If you did not receive your certificate please download it using the instructions in the following Knowledge Base solution: vs7791

2. Install the certificate

a. Copy the certificate to the Apache directory in which you plan to store your certificates (example: /etc/httpd/conf/ssl.key/ or /etc/httpd/conf/ssl.crt/).

b. Open the Apache httpd.conf file in a text editor (notepad/vi). 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:

SSLCertificateKeyFile //where/the/key/is/located/www.mydomain.com.key SSLCertificateFile /where/the/certificate/is/located/www.mydomain.com.crt

Note that some instances of Apache contain both a httpd.conf and ssl.conf file. Please enter or amend the httpd.conf or the ssl.conf with the above directives. Do not enter the information in both as there will be a conflict and Apache will not start.

c. Save the changes and exit the editor.

d. Stop and start the Apache daemon which will register the changes that have been made in the config file. You can use the following commands:

/usr/sbin/apachectl stop /usr/sbin/apachectl startssl or: /usr/sbin/httpd -k stop /usr/sbin/httpd -DSSL

3. Setup the server

Make sure you assign port 443 and a unique ip address (i.e <VirtualHost>)to the virtual host. Apache does not support name based virtual hosts therefore host headers must not be specified in the VirtualHost directive.

Note If the server is behind a firewall please make sure port 443 has been enabled on the firewall.

Install the SGC CA Intermediate Certificate (step 4 is only required if you are installing a SGC SuperCert)

4. Install the SGC CA Intermediate Certificate

a. Copy your Intermediate CA Certificate into a text editor such as notepad/vi including the header and footer. Save the certificate to the same location that the issued certificate is stored.

b. Please add the following directive in your virtual host:

SSLCACertificateFile /where/the/certificate/is/located/intermediate.crt

c. Save the changes made to your httpd.conf file.

d. You will also need to restart the entire server and not just the daemon, in order for the installation to take an effect.

Test your certificate by using a browser to connect to your server. Use the https protocol directive (e.g. https://your server/) to indicate you wish to use secure HTTP. The padlock icon on your browser will be displayed in the locked position if your certificates are installed correctly and the server is properly configured for SSL.

If you encounter any problems, or errors when going through these steps, please read our Apache FAQ’s. http://www.thawte.com/support/ssl/apache.html

技術支援系統登入 忘記密碼?


文件區 (3)
SSL 憑證 (0)
CodeSign程式碼簽章 (0)
Email憑證 (24)
隱私條款 法律聲明 安全說明連絡寰宇