4 Simple Ways to Install an SSL Certificate To a Server (2024)

  • Categories
  • Computers and Electronics
  • Internet
  • Internet Security

Download Article

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

Written byTravis Boylls

Last Updated: May 10, 2024Fact Checked

Download Article

  • Before Obtaining an SSL
  • |
  • Using Microsoft Internet Information Services (IIS)
  • |
  • Using Apache
  • |
  • Using Microsoft Exchange
  • |
  • Using cPanel
  • |
  • Video

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. 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. 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.

    Advertisem*nt

  3. 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. 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. Advertisem*nt

Method 2

Method 2 of 5:

Using Microsoft Internet Information Services (IIS)

Download Article

  1. 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. 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. 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. 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. 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. 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. 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. 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. 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. Advertisem*nt

Method 3

Method 3 of 5:

Using Apache

Download Article

  1. 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. 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. 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. 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. 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. 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. 7

    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. Advertisem*nt

Method 4

Method 4 of 5:

Using Microsoft Exchange

Download Article

  1. 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. 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. 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. 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. 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. 6

    Select your certificate request and click Complete. You can find the "Complete" link under "Status" in the panel to the right.

  7. 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. 8

    Click the pencil icon next to your SSL certificate. It's in the center pane, on the Certificates page.

  9. 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. Advertisem*nt

Method 5

Method 5 of 5:

Using cPanel

Download Article

  1. 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. 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. 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. 4

    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 Log In.

  5. 5

    Click SSL/TLS. It's below "Security." This opens the SSL/TLS Manager.

  6. 6

    Click Manage SSL Sites. It's below “Install and Manage SSL for your site (HTTPS)."

  7. 7

    Select your domain. Use the drop-down menu at the top of the page to do so.

  8. 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. 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. 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. 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. 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. Advertisem*nt

Expert Q&A

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

      Advertisem*nt

      Video

      Submit a Tip

      All tip submissions are carefully reviewed before being published

      Submit

      Thanks for submitting a tip for review!

      You Might Also Like

      How toClear Your Browser's Cookies
      How toAccess Blocked Websites4 Ways to Block p*rn on Android from Websites and Apps4 Simple Ways to View Cookies in a Web BrowserHow toHack a ComputerHow toBlock a Program with Windows FirewallHow toOpen Incognito Mode by Default in Google Chrome (Windows)How toPassword Protect a Web PageHow toVerify a PGP SignatureHow toDelete Tracking CookiesHow toKeep Your Address PrivateHow to Be Anonymous Online: 15 Privacy-Boosting Tricks

      Advertisem*nt

      About This Article

      4 Simple Ways to Install an SSL Certificate To a Server (63)

      Written by:

      Travis Boylls

      wikiHow Technology Writer

      This article was co-authored by wikiHow staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for wikiHow. 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 282,769 times.

      How helpful is this?

      Co-authors: 29

      Updated: May 10, 2024

      Views:282,769

      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?

      In other languages

      Spanish

      Chinese

      German

      French

      Hindi

      Thai

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 282,769 times.

      Is this article up to date?

      Advertisem*nt

      4 Simple Ways to Install an SSL Certificate To a Server (2024)

      FAQs

      How to install an SSL certificate on a server? ›

      Generate a Certificate Signing Request (CSR).
      1. Login to cPanel.
      2. Click SSL/TLS in the "Security" section.
      3. Click the Generate, view, upload, or delete your private keys links.
      4. Scroll down to the “Generate a New Key” section. ...
      5. Click “Return to SSL Manager”. ...
      6. Enter your organization's information. ...
      7. Click the Generate button.
      May 10, 2024

      How to generate SSL certificate for server? ›

      Detailed procedure
      1. Install OpenSSL. ...
      2. Creating the CA. ...
      3. generate the key for the server certificate. ...
      4. Certificate Signing Request erzeugen. ...
      5. Customise the OpenSSL configuration. ...
      6. Sign the Server Certificate. ...
      7. Install the certificate.

      How do I deploy an SSL certificate? ›

      Navigate to your console's security menu. For more information, see Navigating to devices. From the Security menu, select SSL > Certificates. From the Actions menu, select Delete for the desired SSL certificate.

      How do I ensure my SSL certificate is installed correctly? ›

      To test whether the SSL installation is successful, you can try visiting your site from different browsers and see if the URL has been appropriately changed to HTTPS protocol. The security information is displayed on the browser, as explained earlier.

      How to manually install SSL? ›

      How To Manually install an SSL Certificate
      1. Step 1: Purchase an SSL Certificate.
      2. Step 2: Configure your SSL Certificate.
      3. Step 3: Generate and upload a CSR.
      4. Step 4: Verify certificate details and click “Proceed.”
      5. Step 5: Allow time for the certificate to validate.

      How to install a certificate? ›

      In the left pane of the console, double-click Certificates (Local Computer). Right-click Personal, point to All Tasks, and then select Import. On the Welcome to the Certificate Import Wizard page, select Next. On the File to Import page, select Browse, locate your certificate file, and then select Next.

      How to add SSL certificate to DNS server? ›

      Getting Started with SSL Certificates and DNSimple
      1. Before you start.
      2. Choose the certificate product.
      3. Choose the certificate names.
      4. Order the certificate.
      5. Validate the certificate request.
      6. Install the certificate.

      How to install SSL certificate on firewall? ›

      How to install SSL certificates on PaloAlto firewall appliance
      1. Navigate to Device-> Certificate Management -> Certificates.
      2. Select “ Generate ” at the bottom of the screen.
      3. On the new page: a. ...
      4. Export your CSR. Select the checkbox beside the desired certificate and press export on the bottom of the page and save the file.

      How to install SSL certificate using SSH? ›

      I. Apache: Creating Your CSR with OpenSSL
      1. Log in to your server via your terminal client (ssh).
      2. Run Command. At the prompt, type the following command: ...
      3. Generate Files. You've now started the process for generating the following two files: ...
      4. Order Your SSL/TLS Certificate. Open the . ...
      5. Save Private Key. ...
      6. Install Certificate.

      How do I know if SSL certificate is installed on my server? ›

      Chrome has streamlined the process for users to access a website's certificate details in just a few steps:
      1. Select the padlock icon located in the address bar of the website.
      2. In the pop-up window, choose "Certificate (Valid)."
      3. Review the "Valid from" dates to ensure the SSL certificate is up-to-date.

      Is it difficult to install SSL certificate? ›

      Installing an SSL certificate is quite easy and can usually be done in a few simple steps. First, you will need to generate a Certificate Signing Request (CSR) file and submit it to the Certificate Authority. Once the SSL certificate is issued, you will then need to install it on the web server.

      How to enable SSL on server? ›

      Enabling SSL on a Windows Server involves a few steps.
      1. Install SSL Certificate: Install SSL certificate from a Certificate Authority (CA). ...
      2. Configure IIS: Open Internet Information Services (IIS) Manager. ...
      3. Verify Firewall Settings: ...
      4. Update Website Links: ...
      5. Restart IIS:
      Aug 18, 2023

      How to install SSL certificate on Remote Desktop server? ›

      In the Remote Desktop Gateway Manager Console tree, right-click on RD Gateway Server and then select Properties. Next, click on the SSL Certificate tab, and then on Import a certificate on the RD Gateway Certificates (local computer)/personal store. Click on Browse and import certificate.

      How to install SSL certificate on IIS server? ›

      Installation Instructions
      1. Access Server in IIS. Launch IIS Manager and click the server name in the Connections menu on the left.
      2. Open Server Certificates Manager. ...
      3. Open Complete Certificate Request Wizard. ...
      4. Specify Certificate Authority Response. ...
      5. Set Certificate Bindings.

      Top Articles
      Latest Posts
      Article information

      Author: Velia Krajcik

      Last Updated:

      Views: 6423

      Rating: 4.3 / 5 (74 voted)

      Reviews: 89% of readers found this page helpful

      Author information

      Name: Velia Krajcik

      Birthday: 1996-07-27

      Address: 520 Balistreri Mount, South Armand, OR 60528

      Phone: +466880739437

      Job: Future Retail Associate

      Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

      Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.