{"id":479,"date":"2016-01-19T15:58:49","date_gmt":"2016-01-19T15:58:49","guid":{"rendered":"http:\/\/www.pkipartner.support\/?page_id=479"},"modified":"2016-02-22T14:02:16","modified_gmt":"2016-02-22T14:02:16","slug":"csr-exchange-2010-power-shell","status":"publish","type":"page","link":"https:\/\/pkipartner.com\/support\/csr-exchange-2010-power-shell\/","title":{"rendered":"CSR &#8211; Exchange 2010 Power Shell"},"content":{"rendered":"<h1>Exchange 2010 CSR using Exchange Shell<\/h1>\n<p>Please note: The below commands can be copied and pasted into your favorite text editor such as Notepad or Notepad++ in order to customize them. We provide them only to show the structure of the New-ExchangeCertificate command (cmdlet).<\/p>\n<p>Method #1: Output to the Screen<\/p>\n<p>\u2022 Open Exchange Management Shell<\/p>\n<p>\u2022 Run the following command: -&gt; New-ExchangeCertificate -GenerateRequest -SubjectName &#8220;C=GB, O=Comodo, cn=owa.comodo.com&#8221; -KeySize 2048 -PrivateKeyExportable $true Note: You can copy into notepad (or any text editor) and paste the command into the shell. Alternatively, one can run the following command add the SANs(Subject Alternative Names) in the CSR as well. (optional) -&gt; New-ExchangeCertificate -GenerateRequest -SubjectName &#8220;C=GB, O=Comodo, cn=owa.comodo.com&#8221; -DomainName owa.comodo.com, owa, autodiscover.comodo.com -PrivateKeyExportable $true<\/p>\n<p>\u2022 CSR will be displayed on screen. You can copy and paste this information. Method #2: Save to File<\/p>\n<p>\u2022 Open Exchange Management Shell \u2022 Run the following commands: -&gt; $CSR = New-ExchangeCertificate -GenerateRequest -SubjectName &#8220;C=GB, O=Comodo, cn=owa.comodo.com&#8221; -PrivateKeyExportable $true -&gt; Set-Content -Path &#8220;C:\\2010certreq.txt&#8221; -Value $CSR<\/p>\n<p>\u2022 At the path location specified in the previous step, your CSR will be written to that file name you have provided.<\/p>\n<p>For more information about the New-ExchangeCertificate command(cmdlet), please visit Microsoft&#8217;s TechNet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exchange 2010 CSR using Exchange Shell Please note: The below commands can be copied and pasted into your favorite text editor such as Notepad or Notepad++ in order to customize them. We provide them only to show the structure of the New-ExchangeCertificate command (cmdlet). Method #1: Output to the Screen\u2026<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/pkipartner.com\/support\/csr-exchange-2010-power-shell\/\"><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\/479"}],"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=479"}],"version-history":[{"count":3,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/479\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/pages\/479\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/pkipartner.com\/support\/wp-json\/wp\/v2\/media?parent=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}