• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1404
  • Last Modified:

Unable to Generate Certificate Request in Exchange 2007

I am trying to generate a certificate request via the cmdlet in Exchange Server 2007 SP1 running on Windows Server 2008 Standard. I'm logged in as the domain Administrator. The request, which I am running on a stand-alone Exchange Server (i.e., no separate Edge server) is as follows:

New-ExchangeCertificate -Confirm  -DomainController dc1.mydomain.com
                                         -DomainName mail1.myserver.net,mail.myserver.net,dc1.mydomain.local
                                         -GenerateRequest:$True   -Path C:\Certificates\Exchange.req -PrivateKeyExportable:$true
                                         -SubjectName "c=us, o=My Company, CN=mail1.justdns.net"   -Force

The error is:

New-ExchangeCertificate : This operation can only be performed locally on a Microsoft Exchange server that has the Edge Transport, Hub Transport, Client Access, or Unified Messaging server role installed.  Please log on locally to a Microsoft Exchange server that has one of the supported server roles installed and perform this operation again.
At line:1 char:24
+ New-ExchangeCertificate  <<<< -Confirm  -DomainController dc1.mydomain.com -DomainName mail1.myserver.net,mail.myserver.net,dc1.mydomain.local  -Gener
ateRequest:$True -Path C:\Certificates\Exchange.req -PrivateKeyExportable:$true -SubjectName "c=us, o=Social Motion, CN=mail1.myserver.net"  -Force

This server is also the domain controller for the domain. Please note that this is a Certificate Request for Secure SMTP with mulitiple domains, so using IIS is not the solution.  Any thoughts on how to get this request to work properly? Thank you.

REFERENCES:
  -  http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_24065528.html   { problem caused by different reasons }
  -  http://www.ditii.com/2007/04/14/exchange-2007-generating-a-certificate-with-a-3rd-party-ca/   { seems I'm doing the same thing?  }
  -  http://technet.microsoft.com/en-us/library/aa998327.aspx   { command syntax  }
  -  http://technet.microsoft.com/en-us/library/aa998840.aspx  {  Creating a Certificate or Certificate Request for TLS  }



0
lesterw2
Asked:
lesterw2
1 Solution
 
RaghuvCommented:
Hi, most of the parameters you have used on the above Certificate request command is not necessary.

I normally use the website (https://www.digicert.com/easy-csr/exchange2007.htm) to create the shell
command for me. it's pretty simple.

PS: Under "Subject Alternative Names", you can enter the multiple domain names.

Give it a try and let us know if you are still having issues
0
 
Girish_2500Commented:
hi,

try removing few parameters. for example try following command

New-ExchangeCertificate      -DomainName mail1.myserver.net,mail.myserver.net,dc1.mydomain.local        -GenerateRequest:$True   -Path "C:\Certificates\Exchange.req" -PrivateKeyExportable:$true                  -SubjectName "c=us, o=My Company, CN=mail1.justdns.net"  

I this should work for you.

0
 
lesterw2Author Commented:
That did the trick! Seems the -DomainController parameter causes the problem! Thank you!
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now