How to Install and Configure Your SSL Certificate on Windows Server

Using IIS 10 to Create Your CSR

  1. In the Windows start menu, type Internet Information Services (IIS) Manager and open it.
  2. In Internet Information Services (IIS) Manager, in the Connections menu tree (left pane), locate and click the server name.IIS 10 Create CSR
  3. On the server name Home page (center pane), in the IIS section, double-click Server Certificates.
  4. On the Server Certificates page (center pane), in the Actions menu (right pane), click the Create Certificate Request… link.IIS 10 Create CSR
  5. In the Request Certificate wizard, on the Distinguished Name Properties page, provide the information specified below and then click Next:Common name:Type the fully-qualified domain name (FQDN) (e.g., www.example.com).Organization:Type your company’s legally registered name (e.g., YourCompany, Inc.).Organizational unit:The name of your department within the organization. Frequently this entry will be listed as “IT”, “Web Security,”or is simply left blank.City/locality:Type the city where your company is legally located.State/province:Type the state/province where your company is legally located.Country:In the drop-down list, select the country where your company is legally located.IIS 10 Add CSR Details
  6. On the Cryptographic Service Provider Properties page, provide the information below and then click Next.CryptographicIn the drop-down list, select Microsoft RSA SChannel Cryptographic Provider,service provider:unless you have a specific cryptographic provider.Bit length:In the drop-down list select 2048, unless you have a specific reason for opting for larger bit length.IIS 10 Add CSR Details
  7. On the File Name page, under Specify a file name for the certificate request, click the  box to browse to a location where you want to save your CSR.Note: Remember the filename that you choose and the location to which you save your csr.txt file. If you just enter a filename without browsing to a location, your CSR will end up in C:\Windows\System32.IIS 10 Add CSR Details
  8. When you are done, click Finish.
  9. Use a text editor (such as Notepad) to open the file. Then, copy the text, including the —–BEGIN NEW CERTIFICATE REQUEST—– and —–END NEW CERTIFICATE REQUEST—– tags, and paste it into the DigiCert order form.IIS 10 Add CSR DetailsReady to order your SSL certificateBUY NOWLEARN MORE
  10. After you receive your SSL certificate from DigiCert, you can install it.

2. IIS 10: How to Install and Configure Your SSL Certificate on Windows Server 2016

If you have not yet created a CSR and ordered your certificate, see IIS 10: How to Create Your CSR Windows Server 2016.

After we validate and issue your SSL certificate, you need to install it on the Windows 2016 server where the CSR was generated. Then, you need to configure the server to use it.

(Single Certificate) How to install your SSL certificate and configure the server to use it

Install SSL Certificate

  1. On the server where you created the CSR, save the SSL certificate .cer file (e.g., your_domain_com.cer) that DigiCert sent to you.
  2. In the Windows start menu, type Internet Information Services (IIS) Manager and open it.
  3. In Internet Information Services (IIS) Manager, in the Connections menu tree (left pane), locate and click the server name.IIS 10 Install SSL Certificate
  4. On the server name Home page (center pane), in the IIS section, double-click Server Certificates.
  5. On the Server Certificates page (center pane), in the Actions menu (right pane), click the Complete Certificate Request… link.IIS 10 Install SSL Certificate
  6. In the Complete Certificate Request wizard, on the Specify Certificate Authority Response page, do the following and then click OK:File name containing theClick the  box and browse to and select the .cer filecertificate authority’s response:(e.g., your_domain_com.cer) that DigiCert sent to you. Friendly name:Type a friendly name for the certificate.The friendly name is not part of the certificate; instead, it is used to identify the certificate.We recommend that you add DigiCert and the expiration date to the end of your friendly name, for example: yoursite-digicert-(expiration date).This information helps identify the issuer and expiration date for each certificate. It also helps distinguish multiple certificates with the same domain name. Select a certificate storeIn the drop-down list, select Web Hosting.for the new certificate:IIS 10 Install SSL Certificate
  7. Now that you’ve successfully installed your SSL certificate, you need to assign the certificate to the appropriate site.
  8. In Internet Information Services (IIS) Manager, in the Connections menu tree (left pane), expand the name of the server on which the certificate was installed. Then expand Sites and click the site you want to use the SSL certificate to secure.IIS 10 Assign SSL Certificate
  9. On the website Home page, in the Actions menu (right pane), under Edit Site, click the Bindings… link.
  10. In the Site Bindings window, click Add.IIS 10 Assign SSL Certificate
  11. In the Add Site Bindings window, do the following and then click OK:Type:In the drop-down list, select https.IP address:In the drop-down list, select the IP address of the site or select All Unassigned.Port:Type port 443. The port over which traffic is secure by SSL is port 443.SSL certificate:In the drop-down list, select your new SSL certificate (e.g., yourdomain.com).IIS 10 Assign SSL Certificate
  12. Your SSL certificate is now installed, and the website configured to accept secure connections.IIS 10 Assign SSL Certificate

(Multiple Certificates) How to install your SSL certificates and configure the server to use them using SNI

This instructions explains how to install multiple SSL certificates and assign them using SNI. The process is split into two parts as follows:

Install First SSL Certificate

Do this first set of instructions only once, for the first SSL certificate.

  1. On the server where you created the CSR, save the SSL certificate .cer file (e.g., your_domain_com.cer) that DigiCert sent to you.
  2. In the Windows start menu, type Internet Information Services (IIS) Manager and open it.
  3. In Internet Information Services (IIS) Manager, in the Connections menu tree (left pane), locate and click the server name.IIS 10 Install SSL Certificate
  4. On the server name Home page (center pane), in the IIS section, double-click Server Certificates.
  5. On the Server Certificates page (center pane), in the Actions menu (right pane), click the Complete Certificate Request… link.IIS 10 Install SSL Certificate
  6. In the Complete Certificate Request wizard, on the Specify Certificate Authority Response page, do the following and then click OK:File name containing theClick the  box and browse to and select the .cer filecertificate authority’s response:(e.g., your_domain_com.cer) that DigiCert sent to you. Friendly name:Type a friendly name for the certificate.The friendly name is not part of the certificate; instead, it is used to identify the certificate.We recommend that you add DigiCert and the expiration date to the end of your friendly name, for example: yoursite-digicert-(expiration date).This information helps identify the issuer and expiration date for each certificate. It also helps distinguish multiple certificates with the same domain name. Select a certificate storeIn the drop-down list, select Web Hosting.for the new certificate:IIS 10 Install SSL Certificate
  7. Now that you’ve successfully installed your SSL certificate, you need to assign the certificate to the appropriate site.
  8. In Internet Information Services (IIS) Manager, in the Connections menu tree (left pane), expand the name of the server on which the certificate was installed. Then expand Sites and click the site you want to use the SSL certificate to secure.IIS 10 Assign SSL Certificate
  9. On the website Home page, in the Actions menu (right pane), under Edit Site, click the Bindings… link.
  10. In the Site Bindings window, click Add.IIS 10 Assign SSL Certificate
  11. In the Add Site Bindings window, do the following and then click OK:Type:In the drop-down list, select https.IP address:In the drop-down list, select the IP address of the site or select All Unassigned.Port:Type port 443. The port over which traffic is secure by SSL is port 443.SSL certificate:In the drop-down list, select your new SSL certificate (e.g., yourdomain.com).IIS 10 Assign SSL Certificate
  12. Your first SSL certificate is now installed, and the website configured to accept secure connections.

Install Additional SSL Certificates

To install and assign each additional SSL certificate, repeat the steps below, as needed.

  1. On the server where you created the CSR, save the SSL certificate .cer file (e.g., your_domain_com.cer) that DigiCert sent to you.
  2. In the Windows start menu, type Internet Information Services (IIS) Manager and open it.
  3. In Internet Information Services (IIS) Manager, in the Connections menu tree (left pane), locate and click the server name.IIS 10 Install SSL Certificate
  4. On the server name Home page (center pane), in the IIS section, double-click Server Certificates.
  5. On the Server Certificates page (center pane), in the Actions menu (right pane), click the Complete Certificate Request… link.IIS 10 Install SSL Certificate
  6. In the Complete Certificate Request wizard, on the Specify Certificate Authority Response page, do the following and then click OK:File name containing theClick the  box and browse to and select the .cer filecertificate authority’s response:(e.g., your_domain_com.cer) that DigiCert sent to you. Friendly name:Type a friendly name for the certificate.The friendly name is not part of the certificate; instead, it is used to identify the certificate.We recommend that you add DigiCert and the expiration date to the end of your friendly name, for example: yoursite-digicert-(expiration date).This information helps identify the issuer and expiration date for each certificate. It also helps distinguish multiple certificates with the same domain name. Select a certificate storeIn the drop-down list, select Web Hosting.for the new certificate:IIS 10 Install SSL Certificate
  7. Now that you’ve successfully installed your SSL certificate, you need to assign the certificate to the appropriate site.
  8. In Internet Information Services (IIS) Manager, in the Connections menu tree (left pane), expand the name of the server on which the certificate was installed. Then expand Sites and click the site you want to use the SSL certificate to secure.IIS 10 Assign SSL Certificate
  9. On the website Home page, in the Actions menu (right pane), under Edit Site, click the Bindings… link.
  10. In the Site Bindings window, click Add.IIS 10 Assign SSL Certificate
  11. In the Add Site Bindings window, do the following and then click OK:Type:In the drop-down list, select https.IP address:In the drop-down list, select the IP address of the site or select All Unassigned.Port:Type port 443. The port over which traffic is secure by SSL is port 443.Host name:Type the host name that you want to secure.Require ServerAfter you enter the host name, check this box.Name Indication:This is required for all additional certificates/sites, after you’ve installed the first certificate and secured the primary site.SSL certificate:In the drop-down list, select an additional SSL certificate (e.g., yourdomain2.com).IIS 10 Assign SSL Certificate
  12. You have successfully installed another SSL certificate and configured the website to accept secure connections.

Test Installation

Posted in godday, SSL | Comments Off on How to Install and Configure Your SSL Certificate on Windows Server

Manually install an SSL certificate on my IIS 10 server

Convert your .crt file to a .cer file

  1. Locate your downloaded .crt file, and double-click to open it.
  2. Select the Details tab, and then the Copy to File button.
  3. Select Next in the Certificate Wizard.
  4. Select Base-64 encoded X.509(.CER) and then select Next.
  5. Select Browse, locate where you want to save your .CER file, and type in a name for your certificate.
  6. Select Next and then Finished.

Copy your certificate files onto the server

  1. Find the directory on your server where certificate and key files are stored, then upload your intermediate certificate (gd_iis_intermediates.p7b or similar) and primary certificate (.cer file that you just converted) into that folder.

Add a Certificate Snap-in to the Microsoft Management Console (MMC)

  1. Click on your Start Menu, then click Run.
  2. In the prompt, type mmc and click OK.
  3. Click File, then click Add/Remove Snap-in.
  4. On the new window, click the Add button.
  5. On the new window, select Certificates and click Add.
  6. Select Computer account for the snap-in and click Next.
  7. Click Local computer and click Finish.
  8. Click Close on the Add Standalone Snap-in window.
  9. Click OK on the Add/Remove Snap-in window.

Import the Intermediate SSL Certificate

  1. In the MCC Console, click  to expand Certificates (Local Computer).
  2. Right click on the Intermediate Certification Authorities folder, hover over All Tasks and click Import.
  3. On the new window, click Next.
  4. Click Browse, find your gd_iis_intermediates.p7b intermediate certificate file and click Open.
  5. Click Next, verify that the certificate information is proper and click Finish.
  6. Close the the import was successful notification.

Install your SSL certificate

  1. Click on your Start Menu, then click Run.
  2. In the prompt, type inetmgr and click OK to launch the Internet Information Services (IIS) Manager.
  3. Under the Connections panel on the left, click on your Server Name.
  4. In the main panel under the IIS section, double click on Server Certificates.
  5. Under the Actions panel on the right, click Complete Certificate Request.
  6. On the new window, click  to browse, find your previously uploaded primary certificate file and click Open.
  7. Add a Friendly name to easily identify this certificate in the future.
  8. In the certificate store option, select Web Hosting and click OK.

Bind the SSL certificate

  1. Under the Connections panel on the left, click  to expand the Sites folder.
  2. Click the Site Name that you plan to install the SSL certificate onto.
  3. Under the Actions panel on the right, find the Edit Site section and click Bindings.
  4. On the new window, click Add and fill out the following information:
    • Type: select https.
    • IP Address: select All Unassigned.
    • Port: type in 443.
    • Host name: leave this empty.
    • SSL Certificate: select your recently installed SSL.
  5. Click OK to confirm, then Close for the Site Bindings window.

Restart IIS

  1. Under the Actions panel on the right, find the Manage Website section and click Restart.
Posted in godday, SSL | Comments Off on Manually install an SSL certificate on my IIS 10 server

Redirect HTTP to HTTPS with Windows IIS 10

  • Download and install the IIS URL Rewrite module, then launch IIS Manager.
  • Select the website you want to apply redirection to, then double-click URL Rewrite.
  • Click Add Rule(s)…
  • Select Blank rule in the Inbound rules section, then click the OK button.
  • Give your redirect an easy-to-remember name.
  • In the Matched URL section:
    • Set Requested URL: to Matches the Pattern.
    • Set Using to Regular Expressions.
    • Enter (.*) as the Pattern.
    • Check Ignore case.
  • Scroll down to Conditions and expand the section if necessary. Select Match All for Logical grouping, then click the Add… button.
  • A dialog box will open:
    • Type {HTTPS} in the Condition input field.
    • Set Check if input string to Matches the Pattern.
    • Type ^OFF$ in the Pattern field.
    • Check Ignore case.
    • Click the OK button.
  • You should now see your condition in the list.
  • Scroll down to the Action section and enter these settings:
    • Select Redirect as the Action type.
    • Type https://{HTTP_HOST}/{REQUEST_URI} in the Rewrite URL field.
    • Uncheck Append query string.
    • Set Redirect type to Permanent (301).
  • Click Apply in the right-hand Actions menu.
  • You can now check your redirect in a web browser. If there are any problems, you can check the site’s web.config file to make sure it contains the correct information. In IIS Manager, right-click your site and choose Explore from the menu.
  • Confirm that the file web.config exists, then open it in a text editor.

Posted in godday, SSL | Comments Off on Redirect HTTP to HTTPS with Windows IIS 10

activate windows from command line

open cmd via admin then type below

cscript c:\windows\system32\slmgr.vbs /ipk ‘enter key here’

Posted in command line of windows, My Windows | Comments Off on activate windows from command line

Synchronize time with external NTP server on Windows Server

NTP synchronization is an important aspect for all computers on the network. By default, the clients computers get their time from a Domain Controller and the Domain Controller gets it’s time from the domain’s PDC Operation Master. Therefore the PDC must synchronize it’s time from an external source. I usually use the servers listed at the NTP Pool Project website. Before you begin, don’t forget to open the default UDP 123 port (from Lan to Wan) on your firewall.

1) First, locate your PDC Server. Open the command prompt and type:

netdom /query fsmoCopy

2) Login to your PDC and open the command prompt as the Administrator 3) Stop the w32Time Service

net stop w32timeCopy

4) Configure the external time sources, type

w32tm /config /syncfromflags:manual /manualpeerlist:”0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org”Copy

5) Make your PDC a reliable time source for the clients

w32tm /config /reliable:yesCopy

6) Start the w32time Service

net start w32timeCopy

7) Check thes servers time configuration

w32tm /query /configurationCopy

8) Check the Event Viewer for any errors

More helpfull w32tm commands

Force synchronizing the time asap

w32tm /resync /nowaitCopy

Display time source

w32tm /query /sourceCopy

Display list of all configured NTP servers and their status

w32tm /query /peersCopy

Display time service status i.e whether it is getting time from local cmso clock/external NTP server

w32tm /query /statusCopy

The Windows Time Service logs several events in the Windows System log, which can be viewed in the Event Viewer application.

Posted in My Windows, windows | Comments Off on Synchronize time with external NTP server on Windows Server