Solved

Unable to Generate Certificate Request in Exchange 2007

Posted on 2009-05-02
3
1,309 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create a User Mailbox 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 >> Mailb…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now