{"id":2516,"date":"2013-10-16T19:05:13","date_gmt":"2013-10-16T11:05:13","guid":{"rendered":"http:\/\/rmohan.com\/?p=2516"},"modified":"2013-10-16T19:05:13","modified_gmt":"2013-10-16T11:05:13","slug":"iis-7-5-export-the-private-key","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2516","title":{"rendered":"IIS 7.5 Export the Private key"},"content":{"rendered":"<p>Overview: Migrating your SSL certificate from one Windows server to another Windows server will require you to export and then import your SSL key pair from server A to server B using a PFX backup file.<\/p>\n<h4>A. To Export a Server Certificate<\/h4>\n<ol>\n<li>In the <strong>Run<\/strong> dialog box, type <strong>mmc<\/strong>, and then click <strong>OK<\/strong>. The Microsoft Management Console (MMC) appears.<\/li>\n<li>If you do not have <strong>Certificate Manager<\/strong> installed in the MMC, you&#8217;ll need to <a href=\"https:\/\/www.geocerts.com\/install\/mmc\">install it<\/a>.\n<ol>\n<li>On the File menu, click <strong>Add\/Remove Snap In<\/strong><\/li>\n<li>Click <strong>Add<\/strong> and then Select <strong>Certificates<\/strong> from the <strong>Available Standalone Snap-ins<\/strong> dialog box and click <strong>Add<\/strong><\/li>\n<li>Select <strong>Computer Account<\/strong> and then <strong>Local Computer<\/strong><\/li>\n<li>The <strong>Certificate Manager<\/strong> MMC has been installed<\/li>\n<\/ol>\n<\/li>\n<li>In the console tree in the left-hand pane expand the <strong>Certificates<\/strong> (Local Computer) node, and then the <strong>Personal<\/strong> node. Note that to view certificates in the local machine store, you must be in the Administrator role. <a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2013\/10\/export_import_6-4.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2518\" alt=\"export_import_6-4\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2013\/10\/export_import_6-4.gif\" width=\"573\" height=\"378\" \/><\/a><\/li>\n<\/ol>\n<ol>\n<li>Right-click the certificate you want to export, click <strong>All Tasks<\/strong>, and click <strong>Export<\/strong> to start the <strong>Certificate Export Wizard<\/strong>.<\/li>\n<li>Click <strong>Next<\/strong>.<\/li>\n<li>On <strong>Export Private Key<\/strong>, click <strong>Yes<\/strong> to export the private key.Important: You must export the private key along with your certificate for it to be valid on your target server. Otherwise, you will have to request a new certificate for the target server.<\/li>\n<li>In the <strong>Export File Format<\/strong> dialog box, click the format you want for the certificate. If the certificate has already been formatted, that format is selected as the default (should be .pfx). Click <strong>Next<\/strong>.<strong>Do not<\/strong> select <strong>Delete<\/strong> the private key if export is successful, because this will disable the SSL site that corresponds to that private key.\n<p>Select the &#8220;include all certificates in the certification path if possible&#8221; checkbox.<a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2013\/10\/certificate_export_wizard.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2517\" alt=\"certificate_export_wizard\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2013\/10\/certificate_export_wizard.jpg\" width=\"513\" height=\"466\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2013\/10\/certificate_export_wizard.jpg 513w, https:\/\/mohan.sg\/wp-content\/uploads\/2013\/10\/certificate_export_wizard-300x272.jpg 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2013\/10\/certificate_export_wizard-150x136.jpg 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2013\/10\/certificate_export_wizard-400x363.jpg 400w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li value=\"8\">Continue to follow steps in the wizard, and enter a password for the certificate backup file when prompted. Using a strong password is highly recommended because it ensures that the private key is well protected.<\/li>\n<li>Type the name of the file you want to export, or click <strong>Browse<\/strong> to search for the file. Click <strong>Next<\/strong>.<\/li>\n<li>Click Finish to complete the Certificate Export Wizard.<\/li>\n<\/ol>\n<h4>B. To Import a Server Certificate<\/h4>\n<ol>\n<li>In the <strong>Run<\/strong> dialog box, type <strong>mmc<\/strong>, and then click <strong>OK<\/strong>. The Microsoft Management Console (MMC) appears.<\/li>\n<li>If you do not have <strong>Certificate Manager<\/strong> installed in the MMC, see step 2 above.<\/li>\n<li>In the console tree in the left-hand pane expand the <strong>Certificates<\/strong> (Local Computer) node, and then the <strong>Personal<\/strong> node.<\/li>\n<\/ol>\n<ol>\n<li><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2013\/10\/export_import_13.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2519\" alt=\"export_import_13\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2013\/10\/export_import_13.gif\" width=\"576\" height=\"380\" \/><\/a><\/li>\n<li><\/li>\n<li>\n<ol>\n<li value=\"4\">Right-click on Certificates, click <strong>All Tasks<\/strong>, and click <strong>Import<\/strong> to start the <strong>Certificate Import Wizard<\/strong>.<\/li>\n<li>Click <strong>Next<\/strong>.<\/li>\n<li>Enter the <strong>password<\/strong> used when the PFX file was exported and check the <strong>Mark the private key as exportable<\/strong> checkbox and click <strong>Next<\/strong>.<\/li>\n<li>Select <strong>Place all certificates in the following store: Personal<\/strong> and click <strong>Next<\/strong>.<\/li>\n<li>Click <strong>Finish<\/strong> to complete the Certificate Import Wizard.<\/li>\n<\/ol>\n<h4>How to assign an Imported SSL Certificate to a Web Site in IIS<\/h4>\n<ol>\n<li>Now the SSL keys are on the target server. Next we assign the certificate to the site in IIS.<\/li>\n<li>Open the <strong>Internet Information Services (IIS) Manager<\/strong>. From the <strong>Start<\/strong> button select <strong>Programs <\/strong>&gt;<strong> Administrative<\/strong> <strong>Tools <\/strong>&gt; <strong>Internet Information Services Manager<\/strong>.<\/li>\n<li>In <strong>IIS Manager<\/strong>, double-click the local computer, and then double-click the <strong>Web Sites<\/strong> folder.<\/li>\n<li><strong>Right-click<\/strong> the Web site for which you want to assign the imported certificate, and then click <strong>Properties<\/strong>. By default it will be Default Web Site, yours may be different.<\/li>\n<\/ol>\n<\/li>\n<li><\/li>\n<li><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2013\/10\/iis_default_web_site.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2520\" alt=\"iis_default_web_site\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2013\/10\/iis_default_web_site.gif\" width=\"296\" height=\"192\" \/><\/a><\/li>\n<li>\n<ol>\n<li>Select the <strong>Directory Security<\/strong> tab and click <strong>Server Certificate<\/strong> in the <strong>Secure communications<\/strong> section.<\/li>\n<li>Click <strong>Next<\/strong> in the <strong>Welcome to the Web Server Certificate Wizard<\/strong> window.<\/li>\n<li>Select <strong>Assign an existing certificate<\/strong>, Click <strong>Next<\/strong>.<\/li>\n<li>Select the certificate from the list and finish the wizard.<\/li>\n<li><strong>Stop<\/strong>, then <strong>Start<\/strong> the web server for that site.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Overview: Migrating your SSL certificate from one Windows server to another Windows server will require you to export and then import your SSL key pair from server A to server B using a PFX backup file.<\/p>\n<p> A. To Export a Server Certificate In the Run dialog box, type mmc, and then click OK. The Microsoft [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2516"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2516"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2516\/revisions"}],"predecessor-version":[{"id":2521,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2516\/revisions\/2521"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}