{"id":8323,"date":"2026-11-21T18:18:27","date_gmt":"2026-11-21T18:18:27","guid":{"rendered":"https:\/\/cloudvpshosts.com\/kb\/?p=8323"},"modified":"2026-11-26T14:29:44","modified_gmt":"2026-11-26T14:29:44","slug":"how-to-install-an-ssl-certificate-on-iis-windows-server","status":"publish","type":"post","link":"https:\/\/cloudvpshosts.com\/kb\/how-to-install-an-ssl-certificate-on-iis-windows-server\/","title":{"rendered":"How to Install an SSL Certificate on IIS (Windows Server)"},"content":{"rendered":"<p>To install an SSL certificate on IIS, open IIS Manager, use Complete Certificate Request to import the certificate DigiCert issued for your CSR, then add an HTTPS binding on port 443 to your website and select the certificate. If you created the CSR outside IIS, import a PFX file instead. The process takes about ten minutes over RDP.<\/p>\n<p>This guide is for Cloud VPS Hosts customers running IIS 10 on Windows Server 2019, 2022 or 2025, on a Windows VPS or dedicated server. It works for RapidSSL, GeoTrust and DigiCert certificates bought from our store.<\/p>\n<h2>What do you need before you start?<\/h2>\n<p>You need administrator access to the server over RDP and the certificate files DigiCert issued for your order.<\/p>\n<ul>\n<li>An RDP connection with an administrator account. See <a href=\"https:\/\/cloudvpshosts.com\/kb\/understanding-rdp-in-windows-vps-how-it-works-and-why-it-matters\/\">how RDP works on a Windows VPS<\/a> if you are new to it.<\/li>\n<li>Your issued certificate, usually a <code>.cer<\/code>, <code>.crt<\/code> or <code>.p7b<\/code> file. A <code>.p7b<\/code> file contains the intermediate certificate as well.<\/li>\n<li>Your website already created in IIS and working over HTTP.<\/li>\n<li>A CSR generated on this same server in IIS Manager. If you have not created one yet, follow <a href=\"https:\/\/cloudvpshosts.com\/kb\/how-to-generate-a-csr-for-your-ssl-certificate\/\">How to generate a CSR<\/a>, Windows section.<\/li>\n<\/ul>\n<p>You can download the issued certificate files at any time from your certificate&#8217;s page under <strong>Services<\/strong> &gt; <strong>My Services<\/strong> in the <a href=\"https:\/\/cloudvpshosts.com\/ClientArea\/\">client area<\/a>.<\/p>\n<h2>How do you complete the certificate request in IIS?<\/h2>\n<p>Completing the pending request joins the issued certificate with the private key Windows created when you generated the CSR.<\/p>\n<ol>\n<li>Copy the certificate file to the server, for example to <code>C:\\ssl\\example_com.cer<\/code>.<\/li>\n<li>Open <strong>Server Manager<\/strong> &gt; <strong>Tools<\/strong> &gt; <strong>Internet Information Services (IIS) Manager<\/strong>.<\/li>\n<li>Click the server name in the left pane, then double-click <strong>Server Certificates<\/strong>.<\/li>\n<li>In the Actions pane, click <strong>Complete Certificate Request<\/strong>.<\/li>\n<li>Browse to your certificate file. If you do not see it, change the file type filter from <code>*.cer<\/code> to <code>*.*<\/code>.<\/li>\n<li>Enter a friendly name you will recognise later, such as <code>example.com 2026<\/code>.<\/li>\n<li>Choose the <strong>Personal<\/strong> certificate store and click <strong>OK<\/strong>.<\/li>\n<\/ol>\n<p>The certificate now appears in the Server Certificates list with your domain under &#8220;Issued To&#8221;.<\/p>\n<h2>How do you bind the certificate to your website?<\/h2>\n<p>A binding tells IIS which certificate to present for HTTPS requests to your site.<\/p>\n<ol>\n<li>In the left pane, expand <strong>Sites<\/strong> and select your website.<\/li>\n<li>In the Actions pane, click <strong>Bindings<\/strong>, then <strong>Add<\/strong>.<\/li>\n<li>Set <strong>Type<\/strong> to <code>https<\/code>, <strong>IP address<\/strong> to <code>All Unassigned<\/code> and <strong>Port<\/strong> to <code>443<\/code>.<\/li>\n<li>Enter your domain in <strong>Host name<\/strong>, for example <code>www.example.com<\/code>, and tick <strong>Require Server Name Indication<\/strong>. SNI lets several HTTPS sites share one IP address.<\/li>\n<li>Select your certificate from the <strong>SSL certificate<\/strong> list and click <strong>OK<\/strong>.<\/li>\n<li>If the certificate also covers <code>example.com<\/code> without www, add a second https binding with that host name and the same certificate.<\/li>\n<\/ol>\n<p>The change takes effect immediately. You do not need to restart IIS.<\/p>\n<h2>What if you generated the CSR with OpenSSL instead of IIS?<\/h2>\n<p>Then Windows does not have your private key, and Complete Certificate Request will fail. Combine the key and certificate into a PFX file and import that instead.<\/p>\n<p>On the Linux machine where you created the key, run:<\/p>\n<pre><code>openssl pkcs12 -export -out example.com.pfx \\\r\n  -inkey example.com.key \\\r\n  -in example_com.crt \\\r\n  -certfile DigiCertCA.crt<\/code><\/pre>\n<p>Set a strong export password when prompted. Copy the PFX file to the Windows server, then:<\/p>\n<ol>\n<li>In IIS Manager, open <strong>Server Certificates<\/strong> and click <strong>Import<\/strong>.<\/li>\n<li>Select the PFX file and enter its password.<\/li>\n<li>Choose the <strong>Personal<\/strong> store and click <strong>OK<\/strong>.<\/li>\n<li>Add the https binding as described above.<\/li>\n<\/ol>\n<p>Delete the PFX file from the server once it is imported. It contains your private key.<\/p>\n<h2>How do you install a missing intermediate certificate?<\/h2>\n<p>If some browsers or devices report the certificate as untrusted, Windows probably does not have the DigiCert intermediate certificate. Import it into the Intermediate Certification Authorities store:<\/p>\n<ol>\n<li>Press <strong>Win + R<\/strong>, type <code>mmc<\/code> and press Enter.<\/li>\n<li>Go to <strong>File<\/strong> &gt; <strong>Add\/Remove Snap-in<\/strong>, choose <strong>Certificates<\/strong>, click <strong>Add<\/strong>, select <strong>Computer account<\/strong>, then <strong>Local computer<\/strong>, and click <strong>Finish<\/strong> and <strong>OK<\/strong>.<\/li>\n<li>Expand <strong>Certificates (Local Computer)<\/strong>, right-click <strong>Intermediate Certification Authorities<\/strong> and choose <strong>All Tasks<\/strong> &gt; <strong>Import<\/strong>.<\/li>\n<li>Select <code>DigiCertCA.crt<\/code> and finish the wizard.<\/li>\n<\/ol>\n<h2>How do you open port 443 and redirect HTTP to HTTPS?<\/h2>\n<p>IIS normally adds a firewall rule for HTTPS when it is installed. Check that it is enabled in PowerShell, run as administrator:<\/p>\n<pre><code>Get-NetFirewallRule -DisplayName \"World Wide Web Services (HTTPS Traffic-In)\" | Select-Object DisplayName, Enabled\r\nEnable-NetFirewallRule -DisplayName \"World Wide Web Services (HTTPS Traffic-In)\"<\/code><\/pre>\n<p>To send every HTTP visitor to HTTPS, install Microsoft&#8217;s free <a href=\"https:\/\/www.iis.net\/downloads\/microsoft\/url-rewrite\" rel=\"noopener\" target=\"_blank\">URL Rewrite module<\/a>, then add this rule inside <code>&lt;system.webServer&gt;<\/code> in your site&#8217;s <code>web.config<\/code>:<\/p>\n<pre><code>&lt;rewrite&gt;\r\n  &lt;rules&gt;\r\n    &lt;rule name=\"Redirect to HTTPS\" stopProcessing=\"true\"&gt;\r\n      &lt;match url=\"(.*)\" \/&gt;\r\n      &lt;conditions&gt;\r\n        &lt;add input=\"{HTTPS}\" pattern=\"off\" ignoreCase=\"true\" \/&gt;\r\n      &lt;\/conditions&gt;\r\n      &lt;action type=\"Redirect\" url=\"https:\/\/{HTTP_HOST}\/{R:1}\" redirectType=\"Permanent\" \/&gt;\r\n    &lt;\/rule&gt;\r\n  &lt;\/rules&gt;\r\n&lt;\/rewrite&gt;<\/code><\/pre>\n<h2>How do you check that SSL is working?<\/h2>\n<p>Browse to <code>https:\/\/www.example.com<\/code> from your own computer and click the padlock to view the certificate details. Then run the free <a href=\"https:\/\/www.ssllabs.com\/ssltest\/\" rel=\"noopener\" target=\"_blank\">Qualys SSL Labs test<\/a>, which flags a missing intermediate or weak protocol settings. Microsoft&#8217;s <a href=\"https:\/\/learn.microsoft.com\/en-us\/iis\/manage\/configuring-security\/how-to-set-up-ssl-on-iis\" rel=\"noopener\" target=\"_blank\">IIS SSL documentation<\/a> covers further options.<\/p>\n<h2>How do you fix problems when you install an SSL certificate on IIS?<\/h2>\n<table>\n<thead>\n<tr>\n<th>Problem<\/th>\n<th>Likely cause<\/th>\n<th>Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Certificate disappears from the list after Complete Certificate Request<\/td>\n<td>The CSR was generated on a different server, so there is no matching private key here<\/td>\n<td>Generate a new CSR on this server and reissue, or import a PFX<\/td>\n<\/tr>\n<tr>\n<td>Certificate missing from the binding&#8217;s SSL certificate list<\/td>\n<td>It was imported into the wrong store, or without its private key<\/td>\n<td>Re-import into the Personal store, using a PFX if needed<\/td>\n<\/tr>\n<tr>\n<td>&#8220;Not trusted&#8221; warnings on some devices<\/td>\n<td>Intermediate certificate missing<\/td>\n<td>Import <code>DigiCertCA.crt<\/code> into Intermediate Certification Authorities<\/td>\n<\/tr>\n<tr>\n<td>HTTPS times out from outside<\/td>\n<td>Port 443 blocked by Windows Firewall<\/td>\n<td>Enable the HTTPS inbound rule shown above<\/td>\n<\/tr>\n<tr>\n<td>Wrong certificate shown for one site<\/td>\n<td>Binding has no host name or SNI is off<\/td>\n<td>Edit the binding, add the host name and tick Require Server Name Indication<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Running ASP.NET or other Windows workloads? Our <a href=\"https:\/\/cloudvpshosts.com\/windows-vps.php\">Windows VPS plans<\/a> give you full administrator access over RDP for IIS. For extra hardening tips, read <a href=\"https:\/\/cloudvpshosts.com\/kb\/how-to-secure-your-windows-vps-from-cyber-threats\/\">how to secure your Windows VPS<\/a>.<\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>Do I need to restart IIS after adding the certificate?<\/h3>\n<p>No. A new or changed https binding applies immediately. Restarting with <code>iisreset<\/code> is only useful if something still looks wrong after you have checked the binding.<\/p>\n<h3>Can I export the certificate to use on another Windows server?<\/h3>\n<p>Yes. In Server Certificates, select the certificate, click <strong>Export<\/strong> and save it as a password-protected PFX file. Import that file on the other server.<\/p>\n<h3>How often do I need to replace the certificate?<\/h3>\n<p>DigiCert certificates issued since March 15, 2026 are valid for up to 199 days. Before expiry, create a new CSR on the server, reissue the certificate from the client area, complete the request and switch your https bindings to the new certificate.<\/p>\n<h3>Does this work for RDP or Exchange as well?<\/h3>\n<p>This guide covers websites in IIS only. RDP and Exchange use certificates differently and have their own setup steps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Complete the certificate request in IIS Manager, bind it to your site with SNI and redirect HTTP to HTTPS on Windows Server.<\/p>\n","protected":false},"author":1,"featured_media":8426,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_focuskw":"","rank_math_title":"How to Install an SSL Certificate on IIS (Windows)","rank_math_description":"Install an SSL certificate on IIS 10: complete the certificate request, add an HTTPS binding with SNI, fix missing intermediates and redirect HTTP.","rank_math_focus_keyword":"install SSL certificate on IIS"},"categories":[69],"tags":[243,238,239,240,249,250],"class_list":["post-8323","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-iis","tag-ssl","tag-ssl-certificate","tag-tutorial","tag-windows-server","tag-windows-vps"],"_links":{"self":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/comments?post=8323"}],"version-history":[{"count":2,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8323\/revisions"}],"predecessor-version":[{"id":8331,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/posts\/8323\/revisions\/8331"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/media\/8426"}],"wp:attachment":[{"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/media?parent=8323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/categories?post=8323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudvpshosts.com\/kb\/wp-json\/wp\/v2\/tags?post=8323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}