CSR Generation: Exchange 2010 (PowerShell)
exchange 2010 csr using exchange shell
be advised: you may copy and paste the below commands into your favorite text editor such as notepad or notepad++ in order to customize them to suite your needs. we provide them only to show the structure of the new-exchangecertificate command (cmdlet).
method #1: output to the screen
open exchange management shell
run the following command:
-> new-exchangecertificate -generaterequest -subjectname "c=gb, o=comodo, cn=owa.comodo.com" -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)
-> new-exchangecertificate -generaterequest -subjectname "c=gb, o=comodo, cn=owa.comodo.com" -domainname owa.comodo.com, owa, autodiscover.comodo.com -privatekeyexportable $true
csr will be displayed on screen. you can copy and paste this information.
method #2: save to file
open exchange management shell
run the following commands:
-> $csr = new-exchangecertificate -generaterequest -subjectname "c=gb, o=comodo, cn=owa.comodo.com" -privatekeyexportable $true -> set-content -path "2010certreq.txt" -value $csr
at the path location specified in the previous step, your csr will be written to that file name you have provided.
be advised: you may copy and paste the below commands into your favorite text editor such as notepad or notepad++ in order to customize them to suite your needs. we provide them only to show the structure of the new-exchangecertificate command (cmdlet).
method #1: output to the screen
open exchange management shell
run the following command:
-> new-exchangecertificate -generaterequest -subjectname "c=gb, o=comodo, cn=owa.comodo.com" -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)
-> new-exchangecertificate -generaterequest -subjectname "c=gb, o=comodo, cn=owa.comodo.com" -domainname owa.comodo.com, owa, autodiscover.comodo.com -privatekeyexportable $true
csr will be displayed on screen. you can copy and paste this information.
method #2: save to file
open exchange management shell
run the following commands:
-> $csr = new-exchangecertificate -generaterequest -subjectname "c=gb, o=comodo, cn=owa.comodo.com" -privatekeyexportable $true -> set-content -path "2010certreq.txt" -value $csr
at the path location specified in the previous step, your csr will be written to that file name you have provided.