{"id":381,"date":"2016-01-19T15:08:54","date_gmt":"2016-01-19T15:08:54","guid":{"rendered":"http:\/\/www.pkipartner.support\/?page_id=381"},"modified":"2016-02-23T15:05:06","modified_gmt":"2016-02-23T15:05:06","slug":"install-certificate-installation-exchange-2010-powershell","status":"publish","type":"page","link":"https:\/\/pkipartner.com\/support\/install-certificate-installation-exchange-2010-powershell\/","title":{"rendered":"Install &#8211; Exchange 2010 (PowerShell)"},"content":{"rendered":"<h1><strong>Certificate Installation: Exchange 2010 (PowerShell)<\/strong><\/h1>\n<p>Once you receive your certificate issuance ZIP file, extract the file(s) contained in the ZIP file to the server. We recommend extracting these to the Desktop or a new directory all together.<\/p>\n<p><strong>Option 1<\/strong><\/p>\n<p>From the Exchange Management Shell, run the following command to install the server, root, and intermediate certificates to their respective certificate stores:<\/p>\n<p><strong><em>Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path c:\\certificates\\YOUR_CERTIFICATE.cer -Encoding byte -ReadCount 0))<\/em><\/strong><strong>\u00a0<\/strong><\/p>\n<p><strong>Note:<\/strong>\u00a0If you received .crt(s) instead of one .cer file, then you will want to ensure that <em>YOUR_CERTIFICATE.cer<\/em>\u00a0is\u00a0<em> YOUR_FQDN.crt<\/em>. As a result of this format, you may need to install the Root &amp; Intermediate certificate(s) on your server manually. See Related Articles section of this document for more details on how to do this.<\/p>\n<p>Make sure there are no spaces in your path. As a result of running this command, it should output a thumbprint. (In the event you&#8217;ve lost your thumbprint, you can copy it from the MMC Certificates Snap-in.)<\/p>\n<p>Then, to enable the services, run the following:<\/p>\n<p><strong><em>Enable-ExchangeCertificate -Thumbprint<\/em><\/strong><strong><em>\u00a0<\/em><\/strong><strong><em>$your_thumbprint<\/em><\/strong><strong><em>\u00a0<\/em><\/strong><strong><em>-Services &#8220;POP,IMAP,SMTP,IIS&#8221;<\/em><\/strong><\/p>\n<p>(This assumes that you&#8217;ll be running the above services)<\/p>\n<h3><strong>Option 2<\/strong><\/h3>\n<p>Alternatively you can run the following command to import &amp; enable services in one line.<\/p>\n<p><em>Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path c:\\certificates\\YOUR_CERTIFICATE.cer -Encoding byte -ReadCount 0)) | Enable-ExchangeCertificate -Services &#8220;IIS,POP,IMAP,SMTP&#8221;<\/em><em><\/p>\n<p><\/em><\/p>\n<h3>Related Articles<\/h3>\n<p>*\u00a0<a href=\"http:\/\/pkipartner.files.wordpress.com\/2014\/03\/adding-root-and-intermediate-certificates-via-mmc1.pdf\">Root and Intermediate Certificate installation via MMC<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Certificate Installation: Exchange 2010 (PowerShell) Once you receive your certificate issuance ZIP file, extract the file(s) contained in the ZIP file to the server. We recommend extracting these to the Desktop or a new directory all together. Option 1 From the Exchange Management Shell, run the following command to install\u2026<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/pkipartner.com\/support\/install-certificate-installation-exchange-2010-powershell\/\"><span>Continue reading<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/381"}],"collection":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":3,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/381\/revisions"}],"predecessor-version":[{"id":739,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/381\/revisions\/739"}],"wp:attachment":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/media?parent=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}