Apache SSL Certificate Installation
https://www.digicert.com/ssl-certificate-installation-apache.htm
>
DocumentRoot /var/www/html2
ServerName www.yourdomain.com
SSLEngine on
SSLCertificateFile /path/to/your_domain_name.crt
SSLCertificateKeyFile /path/to/your_private.key
SSLCertificateChainFile /path/to/DigiCertCA.crt
Adjust the file names to match your certificate files:
Test your Apache config before restarting.
It is always best to check your Apache config files for any errors before restarting, because Apache will not start again if your config files have syntax errors. Run the following command: (it is apache2ctl on some systems)
Restart Apache.
You can use apachectl commands to stop and start Apache with SSL support:
Note: If Apache does not start with SSL support, try using "apachectl startssl" instead of "apachectl start". If SSL support only loads with "apachectl startssl" we recommend you adjust the apache startup configuration to include SSL support in the regular "apachectl start" command. Otherwise your server may require that you manually restart Apache using "apachectl startssl" in the event of a server reboot. This usually involves removing the and tags that enclose your SSL configuration.
>
DocumentRoot /var/www/html2
ServerName www.yourdomain.com
SSLEngine on
SSLCertificateFile /path/to/your_domain_name.crt
SSLCertificateKeyFile /path/to/your_private.key
SSLCertificateChainFile /path/to/DigiCertCA.crt
Adjust the file names to match your certificate files:
- SSLCertificateFile should be your DigiCert certificate file (eg. your_domain_name.crt).
- SSLCertificateKeyFile should be the key file generated when you created the CSR.
- SSLCertificateChainFile should be the DigiCert intermediate certificate file (DigiCertCA.crt)
If the SSLCertificateChainFile directive does not work, try using the SSLCACertificateFile directive instead.
It is always best to check your Apache config files for any errors before restarting, because Apache will not start again if your config files have syntax errors. Run the following command: (it is apache2ctl on some systems)
apachectl configtest
You can use apachectl commands to stop and start Apache with SSL support:
apachectl stop
apachectl start
apachectl start
Visite nuestras instrucciones en español para Apache Instalar Certificado SSL.
Troubleshooting:
- If your web site is publicly accessible, our SSL Certificate Tester tool can help you diagnose common problems.
- For help moving your certificates to additional servers or across server platforms, see our OpenSSL export instructions.
- If you need to disable SSL version 2 compatibility in order to meet PCI Compliance requirements, you will need to add the following directive to your Apache configuration file:
SSLCipherSuite HIGH:+MEDIUM:!SSLv2:!EXP:!ADH:!aNULL:!eNULL:!NULL
If the directive already exists, you will probably need to modify it to disable SSL version 2. - Also you can visit our page with instructions to fix common Apache SSL Errors for additional tips.
Apache Server Configuration
For information about Apache server configurations that can strengthen your SSL environment:
- Instructions for disabling the SSL v3 protocol.
Apache: Disabling the SSL v3 Protocol - Information about enabling perfect forward secrecy.
Enabling Perfect Forward Secrecy
Installing your SSL Certificates in Apache
How to install your SSL Digital Certificate.
留言