SSL certificates (short for Secure Socket Layer) are used by websites and services to authenticate and encrypt data transmitted between them and their clients. SSL also verifies that you are connected to the correct service you intend to use (e.g., am I really logging into my email provider or is this a fraudulent replica?). If you are offering a website or service that requires a secure connection, installing an SSL certificate to validate your credibility might be necessary. Let’s explore the steps to achieve this in the following guide.
Steps
Using Microsoft Internet Information Services (IIS)

- Open Server Manager.
- Click on Tools and select Internet Information Services (IIS) Manager.
- Choose the workstation where you are installing the certificate from the Connections list.
- Open the Server Certificates tool.
- Click the Create Certificate Request link in the top-right corner under the Actions list.
- Fill in the details in the Request Certificate wizard. You’ll need to input a two-digit country code, state or province, city or town name, the full company name, department name (e.g., IT or Marketing), and the website address (commonly referred to as the domain name).
- Leave the 'Cryptographic service provider' field as default.
- Set the 'Bit length' to '2048'.
- Name the certificate request file. The file name doesn’t matter as long as you can locate it in your storage later.

- You’ll need to upload the CSR file to the certificate service. This file is used to generate the certificate for your server. Most providers require you to upload the file, while others may only need the CSR content copied and pasted.

- Rename the Primary Certificate to “yourwebsite.cer”.


- The certificate will appear in the list. If it doesn’t, ensure you’re using the same server where the CSR was generated.

- 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, then choose the installed certificate from the “SSL certificate” dropdown.
- Click OK and then Close.

- Once copied, double-click the certificate to open its Certificate Details.
- Click the General tab. At the bottom of the window, click the “Install Certificate” button.
- Select “Place all certificates in the following store” and browse to the local store. You can locate the local store by checking the “Show physical stores” box, then selecting Intermediate Certificates and clicking on Local Computer.


Using Apache

- Launch the OpenSSL utility. You can find it at /usr/local/ssl/bin/
- Generate the key pair by entering the following command:
openssl genrsa –des3 –out www.mydomain.com.key 2048
- Create a passphrase. You’ll need to enter this passphrase every time you interact with the key pair.
- Begin 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 in the required information. You’ll need to input a two-digit country code, state or province, city or town name, the full company name, department name (e.g., IT or Marketing), and the website address (commonly referred to as the domain name).
- Generate the CSR file. After entering the details, run the following command to create the CSR file on your server:
openssl req -noout -text -in www.mydomain.com.csr

- You’ll need to upload the CSR file to the certificate service. This file is used to generate the certificate for your server.

-----BEGIN CERTIFICATE----- [Encoded Certificate] -----END CERTIFICATE-----
- If the certificate is in a text file, change the file extension to .CRT before uploading.
- Verify the downloaded key. Ensure there are five hyphens “-” on both sides of the BEGIN CERTIFICATE and END CERTIFICATE lines. Also, check for any unnecessary spaces or line breaks within the key.


SSLCertificateFile /usr/local/ssl/crt/primary.crt SSLCertificateKeyFile /usr/local/ssl/private/private.key SSLCertificateChainFile /usr/local/ssl/crt/intermediate.crt
- Save the changes to the file after completion. Re-upload the file to the server if necessary.

apachectlp stop apachectl startssl

Using Exchange

- Open the Exchange Management Console. Click Start > Programs > Microsoft Exchange 2010 > Exchange Management Console.
- Once the program launches, click the Manage Databases link in the center of the window.
- Select “Server Configuration” from the left-hand pane. Click the “New Exchange Certificate” link in the Actions list on the right side of the screen.
- Enter a memorable name for the certificate. This is optional and only for your convenience (it does not affect the certificate).
- Enter configuration details. Exchange will automatically select the appropriate services, but if it doesn’t, you’ll need to configure them manually. Ensure all services you want to protect are selected.
- Enter organizational information. You’ll need to input a two-digit country code, state or province, city or town name, the full company name, department name (e.g., IT or Marketing), and the website address (commonly referred to as the domain name).
- Choose a location and name for the CSR file you’re about to generate. Take note of where this file is saved for the next steps in purchasing the certificate.

- You’ll need to upload the CSR file to the certificate service. This file is used to generate the certificate for your server. Most providers require you to upload the file, while others may only need the CSR content copied and pasted.

- the certificate file you received to the Exchange server.

- Click File and choose Add/Remove Snap In.
- Click Add, select Certificates, and then click Add again.
- Choose Computer Account and click Next. Select Local Computer as the storage location. Click Finish and then OK. You’ll return to the MMC.
- Select Certificates in the MMC. Choose “Intermediate Certification Authorities” and then select Certificates.
- Right-click Certificates, select All Tasks, and then choose Import. Use the wizard to load the Intermediate Certificate you downloaded from your provider.

- Browse for the Primary Certificate file and click Complete. Once the certificate is uploaded, click Finish.
- Ignore any errors indicating failure; this is a common occurrence.
Using cPanel

- Log in to cPanel. Open the dashboard and locate the SSL/TLS Manager.
- Click the “Generate, view, upload, or delete your private keys” link.
- Scroll down to the “Generate a New Key” section. Enter the domain name or select it from the dropdown menu. Choose 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 organizational details. You’ll need to input a two-digit country code, state or province, city or town name, the full company name, department name (e.g., IT or Marketing), and the website address (commonly referred to as the domain name).
- Click the Generate button. The CSR will appear. You can copy and paste this code into the certificate purchase form. If the service requires a CSR file, copy the code into a text editor and save it as a .CSR file.

- You’ll need to upload the CSR file to the certificate service. This file is used to generate the certificate for your server. Most providers require you to upload the file, while others may only need the CSR content copied and pasted.




