Manually install an SSL certificate on my Apache server (CentOS)

Generic selectors
Exact matches only
Search in title
Search in content
Filter by Categories
Account Management Help
add photos, video and audio
Add-on features and social media
Advanced campaign settings
All about analytics
All about images
Basic steps
Configure the Web Application Firewall (WAF)
Connect my Calendar and Online Storage to Workspace
contact support
copy files to my site
Create my email address
Customize campaign
Discover domains
discover linux hosting with cPanel
Discover Microsoft 365
Discover Online Storage
Discover Workspace Email
edit content
Email Marketing demo
expand your site with sections and pages
Explore email add-ons
Explore my account
Find server and port settings (IMAP/POP)
fine tune my website
get social
Get started with SSL certificates
Get the most out of Microsoft 365
help my site get found and monitor my metrics
Hosting & Servers
keep my account secure
Keep my email secure
know your privacy rights
Manage your SSL certificate
Managed WordPress
Manual email configuration
Migrate and export my emails
My email account isn’t working (troubleshooting)
nameservers and DNS
online store
parking, forwarding and monetizing
privacy and protection
publish my site
Quick Shopping Cart
Renew my products and services
Set up a campaign
Set up email on my devices
set up my payment methods
Set up my Workspace Email account
start with the basics
Stay productive anywhere with Office apps
Streamline email tasks to help my business
transfer between accounts
transfer between registrars
Troubleshoot email and email setup
Upgrade and renewal options for email
Web & Classic Hosting
Website backups
Website Builder 7
Website Builder version 6
Website Security and Backups
work with databases
work with delegates
working with blogs

Not the right server type? Go back to the list of installation instructions.

After your certificate request is approved, you can download your certificate from the SSL manager and install it on your Apache server. If your server is running Ubuntu instead of CentOS, please see Manually install an SSL certificate on my Apache server (Ubuntu).

  1. Find the directory on your server where certificate and key files are stored, then upload your intermediate certificate (gd_bundle.crt or similar) and primary certificate (.crt file with randomized name) into that folder.
    • For security, you should make these files readable by root only.
  2. Find your Apache configuration file.
    • On default configurations, you can find a file named httpd.conf in the /etc/httpd folder.
    • If you have configured your server differently, you may be able to find the file with the following command:
grep -i -r "SSLCertificateFile" /etc/httpd/

/etc/httpd/ may be replaced with the base directory of your Apache installation.

3. Open this file with your favorite text editor.
4. Inside your httpd.conf file, find the block.
5. To have your site available on both secure (https) and non-secure (http) connections, make a copy of this block and paste it directly below the existing block.
6. You can now customize this copy of the block for secure connections. Here is an example configuration:

	DocumentRoot /var/www/coolexample
		SSLEngine on
		SSLCertificateFile /path/to/coolexample.crt
		SSLCertificateKeyFile /path/to/privatekey.key
		SSLCertificateChainFile /path/to/intermediate.crt
  • Don’t forget the added 443 port at the end of your server IP.
  • DocumentRoot and ServerName should match your original <VirtualHost> block.
  • The remaining/path/to/… file locations can be replaced with your custom directory and file names.

7. First, run the following command to check your Apache configuration file for errors:

apachectl configtest

8. Confirm that the test returns a Syntax OK response. If it does not, review your configuration files.

Warning: The Apache service will not start again if your config files have syntax errors.

9. After confirming a Syntax OK response, run the following command to restart Apache:

apachectl restart

Previous Next

Note: As a courtesy, we provide information about how to use certain third-party products, but we do not endorse or directly support third-party products and we are not responsible for the functions or reliability of such products. Third-party marks and logos are registered trademarks of their respective owners. All rights reserved.

Changing the currency for the products.

Prices shown in US Dollars. You can convert to your own currency after selecting a product.