How to Install an SSL Certificate on a Server

Download Article
Find out how to obtain and install an SSL certificate on a Microsoft or Apache server, or in cPanel
Download Article

Do you need to install an SSL certificate on your server? SSL (Secure Socket Layer) certificates are how websites and services earn validation for the encryption of the data sent between them and their clients. This encryption is needed to secure websites that transmit private data, such as credit card information, passwords, names, and addresses. It's what allows your web browser to display the lock icon and the "HTTPS" protocol. They can also be used to verify that you are connected with the service you wish to be connecting with (e.g., am I really signing into my email provider or is this a fraudulent clone?). If you are providing a website or service that requires a secure connection, you may wish to install an SSL certificate to validate your trustworthiness. Read on after the jump to learn how.

Adding an SSL Certificate to a Server

  • Using Microsoft IIS, download and open the certificate in IIS and bind it to your website.
  • Using Apache, upload the SSL to your server, open the file in a text editor, and adjust the Virtual Host section.
  • In Microsoft Exchange, log into the Exchange Admin Center and import your file.
Method 1
Method 1 of 5:

Before Obtaining an SSL

Download Article
  1. How.com.vn English: Step 1 Make sure your website information is correct.
    Before you can request an SSL from a Certificate Authority, you need to make sure your website has a unique IP address. You will also need to make sure your WHOIS record is up-to-date and accurate. If you are requesting an SSL for a business website, you may be required to provide government registration of your business. Make sure you have all this information and it is correct.
  2. How.com.vn English: Step 2 Decide on what validation level you need.
    SSL certificates have three validation levels. They are as follows:
    • Domain Validation (DV): This is the cheapest form of validation. It only certifies that the company has control over the domain. This is good for small businesses or blogs that don't exchange private information.
    • Organization Validation (OV): THis is a medium level organization. It verifies that the company has control over the domain and additional company details, such as the name and address. This is good for companies that have websites with forms and lead-capture features.
    • Extended Validation (EV): This is the highest and most expensive level of validation. This verifies company control over the domain, as well as location and legal existence. This is good if your website is handling sensitive information, such as financial and credit card information.
    Advertisement
  3. How.com.vn English: Step 3 Decide what type of certification you need.
    There are different SSL certificates you can request depending on how many domains and subdomains you need to secure. The following are the different types of SSL certificates you can request:
    • Single Domain: This type of certificate can only validate a single domain. It cannot be used to validate any additional domains or subdomains.
    • Wildcard: Wildcard certificates can provide validation for a single domain as well as any subdomains under that domain. It cannot provide validation for additional domains.
    • Multi-Domain: This type of SSL can provide validation for up to 100 domains using a single SSL certificate.
  4. How.com.vn English: Step 4 Choose a certificate authority.
    Many domain providers (such as GoDaddy) can provide SSL certificates on their own. You can also request an SSL certificate from a different Certificate Authority, such as Comodo, Symantec, DigiCert, GlobalSign, and more.[1]
  5. Advertisement
Method 2
Method 2 of 5:

Using Microsoft Internet Information Services (IIS)

Download Article
  1. How.com.vn English: Step 1 Generate a Certificate Signing Request (CSR).
    Before you can purchase and install an SSL certificate, you will need to generate a CSR on your server. This file contains your server and public key information and is required to generate the private key. You can create a CSR in IIS 8 with just a few clicks of the mouse:
    • Open the Server Manager in the Windows Start menu.
    • Click Tools and select Internet Information Services (IIS) Manager.
    • Select your server name in the "Connections" panel to the left.
    • Open the Server Certificates tool.
    • Click the Create Certificate Request link in the upper-right corner, under the Actions list.
    • Fill in the information in the Request Certificate wizard. You will need to enter your two-digit country code, the state or province, city or town name, full company name, section name (i.e. IT or Marketing), and the common name (typically the domain name).
    • Leave the “Cryptographic service provider” set to default.
    • Set “Bit length” to “2048”.
    • Name the certificate request file. The file name doesn't matter, as long as you can find it among your files.
  2. How.com.vn English: Step 2 Order your SSL certificate.
    There are several services online that offer SSL certificates. Make sure to only order from a reputable service, since you and your customer’s security is at stake. Popular services include DigiCert, Symantec, GlobalSign, and more. The best service for you will vary depending on your needs (multiple certificates, enterprise solutions, etc.).
    • You will need to upload your CSR file to the certificate service when you order it. This will be used to generate the certificate for your server. Some providers will have you copy the contents of the CSR file, while others will have you upload the file itself.
  3. How.com.vn English: Step 3 Download your certificates.
    You will need to download the Intermediate Certificates from the service that you purchased your certificates from. You will receive your Primary Certificate via email or through the customer area of the website.
    • Rename the Primary Certificate to “yoursitename.cer”.
  4. How.com.vn English: Step 4 Open the Server Certificates tool in IIS again.
    From here, click the Complete Certificate Request link underneath the “Create Certificate Request” link you clicked to generate a CSR.
  5. How.com.vn English: Step 5 Browse for the certificate file.
    Once you’ve located it on your computer, you’ll need to apply a “Friendly name” to it, which is the quick name for identifying the certificate on your server. Store the certificate in the “Personal” store. Click OK to install the certificate.
    • Your certificate should appear on the list. If it does not, ensure that you are using the same server that you generated the CSR on.
  6. How.com.vn English: Step 6 Bind the certificate to your website.
    Now that the certificate has been installed, you’ll need to bind it to the website that you want to protect. Expand the “Sites” folder in the Connections list, and then click on the website.
    • Click the Bindings link in the Actions list.
    • Click the Add button in the Site Bindings window that appears.
    • Select “https” from the “Type” dropdown menu, and select your installed certificate from the “SSL certificate” dropdown menu.
    • Select "All Unassigned" in the drop-down menu below "IP Address."
    • Enter "443" below "Port."
    • Select your certificate below "SSL Certificate" (i.e. "yourdomain.com").
    • Press OK and then Close.
  7. How.com.vn English: Step 7 Install the Intermediate Certificates.
    Find the Intermediate Certificates that you downloaded from the certificate provider. Some providers provide more than one certificate that needs to be installed, while others only have one. Copy these certificates to a dedicated folder on your server. [2]
    • Once the certificates have been copied to the server, double-click it to open the Certificate Details.
    • Click the General tab. Click the “Install Certificate” button at the bottom of the window.
    • Select “Place all certificates in the following store” and then browse for the Local store. It can be found by checking the “Show physical stores” box, selecting Intermediate Certificates, and then clicking Local Computer.
  8. How.com.vn English: Step 8 Restart IIS.
    In order to start distributing certificates, you’ll need to restart your IIS server. To restart IIS, click Start and then select Run. Type “IISREset” and then press Enter. The Command Prompt will appear and display the status of the IIS restart.[3]
  9. How.com.vn English: Step 9 ...
    Test your certificate. Use various web browsers to test that your certificate is working properly. Connect to your website using “https://” to force the SSL connection. You should see the padlock icon in your address bar, usually with a green background.
  10. Advertisement
Method 3
Method 3 of 5:

Using Apache

Download Article
  1. How.com.vn English: Step 1 Generate a Certificate Signing Request (CSR).
    Before you can purchase and install an SSL certificate, you will need to generate a CSR on your server. This file contains your server and public key information and is required to generate the private key. You can generate a CSR directly from the Apache command line:
    • Start the OpenSSL utility. This can usually be found at /usr/local/ssl/bin/
    • Create a key pair. Be sure to replace "server" with your server name. Enter the following by entering the following command:
       openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
    • Create a passphrase. This passphrase will need to be entered whenever you interact with your keys.
    • Start the CSR generation process. Enter the following command when prompted to create the CSR file:
      openssl req –new –key www.mydomain.com.key –out www.mydomain.com.csr
    • Fill out the requested information. You will need to enter your two-digit country code, the state or province, city or town name, full company name, section name (i.e. IT or Marketing), and the common name (typically the domain name).
    • Create the CSR file. Once the information has been entered, run the following command to generate the CSR file on your server:[4]
      openssl req -noout -text -in www.mydomain.com.csr
  2. How.com.vn English: Step 2 Order your SSL certificate.
    There are several services online that offer SSL certificates. Make sure to only order from a reputable service, since you and your customer’s security is at stake. Popular services include DigiCert, Symantec, GlobalSign, and more. The best service for you will vary depending on your needs (multiple certificates, enterprise solutions, etc.).
    • You will need to upload your CSR file to the certificate service when you order it. This will be used to generate the certificate for your server.
  3. How.com.vn English: Step 3 Download your certificates.
    You will need to download the Intermediate Certificates from the service that you purchased your certificates from. You will receive your Primary Certificate via email or through the customer area of the website. Your key should look similar to this:
    -----BEGIN CERTIFICATE-----[Encoded Certificate]-----END CERTIFICATE-----
    • If the certificates are in a text file, you will need to change it to a .CRT file before uploading it
    • Check the keys that you download. There should be 5 dashes “-” on either side of the BEGIN CERTIFICATE and END CERTIFICATE lines. Also, ensure that there are no extra spaces or line breaks inserted into the key.
  4. How.com.vn English: Step 4 Upload the certificates to your server.
    The certificates should be put in a folder dedicated to certificates and key files. An example location would be /usr/local/ssl/crt/. All of your certificates need to be in the same folder.
  5. How.com.vn English: Step 5 Open the “httpd.conf” file in a text editor.
    Some versions of Apache have an “ssl.conf” file for the SSL certificates. Only edit one of the two if you have both. Add the following lines to the Virtual Host section:
    SSLCertificateFile /usr/local/ssl/crt/primary.crtSSLCertificateKeyFile /usr/local/ssl/private/private.keySSLCertificateChainFile /usr/local/ssl/crt/intermediate.crt
    • Save the changes to the file once you are finished. Re-upload the file if necessary.
  6. How.com.vn English: Step 6 Restart your server.
    Once the file has been changed, you can start using your SSL certificate by restarting your server. Most versions can be restarted by entering the following commands:
    apachectlp stopapachectl startssl
  7. How.com.vn English: Step 7 [5]...
    Test your certificate. Use various web browsers to test that your certificate is working properly. Connect to your website using “https://” to force the SSL connection. You should see the padlock icon in your address bar, usually with a green background.[5]
  8. Advertisement
Method 4
Method 4 of 5:

Using Microsoft Exchange

Download Article
  1. How.com.vn English: Step 1 Generate a Certificate Signing Request (CSR).
    Before you can purchase and install an SSL certificate, you will need to generate a CSR on your server. This file contains your server and public key information, and is required to generate the private key.
    • Open a web browser and enter the URL of your server.
    • Enter your domain username and password and click Sign In.
    • Click Servers in the EAC side bar menu. Then click Certificates in the menu at the top.
    • Select your server in the "Select Server" drop-down menu. Then click the plus (+) symbol.
    • Click Create a request for a certificate from a certification authority and click Next.
    • Enter a friendly name for the certificate and click Next.
    • Click Next if you are not requesting a wildcard certificate.
      • If you are requesting a wildcard certificate, click the checkbox next to "Request a wild-card certificate" and enter the root domain name. Then click Next.
    • Click Browse below "Store certificate request on this server" and then select the server you want to store the certificate on. Then click Next.
    • Click Next and review the domains you want to apply the certificate to.
    • Add or remove and domains you want to apply the certificate to and click Next.
    • Enter the requested information about your organization.
    • Enter a UNC path to save your CSR certificate to and click Finish.
  2. How.com.vn English: Step 2 Order your SSL certificate.
    There are several services online that offer SSL certificates. Make sure to only order from a reputable service, since you and your customer’s security is at stake. Popular services include DigiCert, Symantec, GlobalSign, and more. The best service for you will vary depending on your needs (multiple certificates, enterprise solutions, etc.).
    • You will need to upload your CSR file to the certificate service when you order it. This will be used to generate the certificate for your server. Some providers will have you copy the contents of the CSR file, while others will have you upload the file itself.
  3. How.com.vn English: Step 3 Download your certificates.
    You will need to download the Intermediate Certificates from the service that you purchased your certificates from. You will receive your Primary Certificate via email or through the customer area of the website.
    • Copy the certificate file that you receive to your Exchange server at the same location you saved the CSR file.
  4. How.com.vn English: Step 4 Log in to the Exchange Admin Center.
    To do so, go to the URL of your server in a web browser and log in with the admin username and password.
  5. How.com.vn English: Step 5 Click Servers followed by Certificates.
    You can find "Servers" in the menu panel to the left and "Certificates" at the top of the page.
  6. How.com.vn English: Step 6 Select your certificate request and click Complete.
    You can find the "Complete" link under "Status" in the panel to the right.
  7. How.com.vn English: Step 7 Enter the UNC path to your SSL certificate and click Ok.
    You can enter this location under "File to Import." The status of your request should now read "Valid assign services."
  8. How.com.vn English: Step 8 Click the pencil icon next to your SSL certificate.
    It's in the center pane, on the Certificates page.
  9. How.com.vn English: Step 9 Check all the services you want to enable the SSL certificate for and click Save.
    Your SSL certificate should now be installed and all services enabled.[6]
  10. Advertisement
Method 5
Method 5 of 5:

Using cPanel

Download Article
  1. How.com.vn English: Step 1 Generate a Certificate Signing Request (CSR).
    Before you can purchase and install an SSL certificate, you will need to generate a CSR on your server. This file contains your server and public key information, and is required to generate the private key.
    • Login to cPanel.
    • Click SSL/TLS in the "Security" section.
    • Click the Generate, view, upload, or delete your private keys links.
    • Scroll down to the “Generate a New Key” section. Enter in your domain name, or select it from the drop-down menu. Select 2048 for “Key Size”. Click the Generate button.
    • Click “Return to SSL Manager”. From the main menu, select the “Generate, view, or delete SSL certificate signing requests” link.
    • Enter your organization’s information. You will need to enter your two-digit country code, the state or province, city or town name, full company name, section name (i.e. IT or Marketing), and the common name (typically the domain name).
    • Click the Generate button. Your CSR will be displayed. You can copy this and enter it into your certification order form. If the service requires the CSR as a file, copy the text into a text editor and save it as a .CSR file.
  2. How.com.vn English: Step 2 Order your SSL certificate.
    There are several services online that offer SSL certificates. Make sure to only order from a reputable service, since you and your customer’s security is at stake. Popular services include DigiCert, Symantec, GlobalSign, and more. The best service for you will vary depending on your needs (multiple certificates, enterprise solutions, etc.).
    • You will need to upload your CSR file to the certificate service when you order it. This will be used to generate the certificate for your server. Some providers will have you copy the contents of the CSR file, while others will have you upload the file itself.
  3. How.com.vn English: Step 3 Download your certificates.
    You will need to download the Intermediate Certificates from the service that you purchased your certificates from. You will receive your Primary Certificate via email or through the customer area of the website.
  4. How.com.vn English: Step 4 Log In
    Log into cPanel. You can typically do this by going to "https://yourdomain.com:2083" in a web browser. Enter your admin username and password and click .
  5. How.com.vn English: Step 5 Click SSL/TLS.
    It's below "Security." This opens the SSL/TLS Manager.
  6. How.com.vn English: Step 6 Click Manage SSL Sites.
    It's below “Install and Manage SSL for your site (HTTPS)."
  7. How.com.vn English: Step 7 Select your domain.
    Use the drop-down menu at the top of the page to do so.
  8. How.com.vn English: Step 8 Copy and paste your certificate.
    Your certificate should come in a zip file. Unzip the file and open it in text editor. Copy the text starting with " —–BEGIN CERTIFICATE—–” and ending with “—–END CERTIFICATE—–“and paste it into the box labeled "Certificate (CRT)."
  9. How.com.vn English: Step 9 Copy and paste your private key.
    If you generated your CSR inside cPanel, then cPanel should generate this automatically. However, if you generated your CSR outside of cPanel, then you will need to copy and paste your private key into the box labeled "Private Key (KEY)."
  10. How.com.vn English: Step 10 Copy and paste your CA Bundle.
    These are the intermediate certificates that allow web browsers to understand who issued the certificate. cPanel should automatically generate these from a public repository. If it does not, you can download the appropriate CA Bundles and copy and paste them into the box labeled "Certificate Authority Bundle (CABundle)."
    • If you have multiple CA Bundles, copy and paste them one after another.
  11. How.com.vn English: Step 11 Click Install Certificate.
    It's the blue button at the bottom of the page. If you have copied the correct certificates into the correct boxes, this should install your SSL certificate.[7]
  12. How.com.vn English: Step 12 ...
    Test your certificate. Use various web browsers to test that your certificate is working properly. Connect to your website using “https://” to force the SSL connection. You should see the padlock icon in your address bar, usually with a green background.
  13. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Travis Boylls
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for How.com.vn. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College. This article has been viewed 278,608 times.
      How helpful is this?
      Co-authors: 29
      Updated: May 10, 2024
      Views: 278,608
      Categories: Internet Security
      Article SummaryX

      1. Generate a CSR on your server.
      2. Order a certificate.
      3. Download the certificate.
      4. Upload the certificate to the server.
      5. Enter the cert info in httpd.conf or ssl.conf.
      6. Restart Apache.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 278,608 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement