Solved

Unable to Generate Certificate Request in Exchange 2007

Posted on 2009-05-02
3
1,336 Views
Last Modified: 2012-05-06
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
Comment
Question by:lesterw2
3 Comments
 
LVL 9

Expert Comment

by:Raghuv
ID: 24289139
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
 
LVL 3

Accepted Solution

by:
Girish_2500 earned 500 total points
ID: 24289919
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
 
LVL 1

Author Closing Comment

by:lesterw2
ID: 31577259
That did the trick! Seems the -DomainController parameter causes the problem! Thank you!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IPAD - Send Email to Many Contacts 10 67
not able to export result in csv - powershell 18 52
exchange 2007 5 35
Skype for Business server 6 38
Find out what you should include to make the best professional email signature for your organization.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question