Link to home
Start Free TrialLog in
Avatar of my51chevy
my51chevy

asked on

Enable-Exchange certificate fails with PrivateKeyMissing error

Hello all-
I received my certificates from GoDaddy this morning. Both certificates installed without issue on my Windows 2008/Exchange 2007 Client Access Server.
When I issued the "enable-exchange-certificate -thumbprint xxxxxxxxxxxxxxxxxxxxxxxx -services "IIS,IMAP,POP,SMTP" command it fails with the following:
Enable-ExchangeCertificate : The certificate with thumbprint xxxxxxxxxxxxx was found but is not for use with Exchange Server (reason: PrivateKeyMissing).
My research consistently states I need to run the certutil -repairstore my "<thumbprint>" command.
When I do, the "Insert Smart Card" window pops up. As I am not using Smart Cards, all I can do is hit "Cancel". Once I do that, the following error occurs:
================ Certificate 0 ================
Serial Number: e06648
Issuer: SERIALNUMBER=111111111, CN=Go Daddy Secure Certification Authority, OU=ht
tp://certificates.godaddy.com/repository, O=GoDaddy.com, Inc., L=Scottsdale, S=A
rizona, C=US
NotBefore: 10/17/2008 10:13 AM
NotAfter: 10/17/2009 10:13 AM
Subject: OU=Domain Control Validated, CN=abc.edu, O=test.abc.edu
Non-root Certificate
Cert Hash(sha1): xxxxxxxxxxxxxxxxxxxxxx
No key provider information
Cannot find the certificate and private key for decryption.
CertUtil: -repairstore command FAILED: 0x80090010 (-2146893808)
CertUtil: Access denied.
I'm stumped...any and all help is appreciated. I'm not particularly strong in certificates.
ASKER CERTIFIED SOLUTION
Avatar of abdulzis
abdulzis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of my51chevy
my51chevy

ASKER

Thanks Addulzis, jjdurrant..
Been offline since last night.
I have a feeling that I'll have to get a new cert..but in the meantime I'll try what jjdurrant suggests..can't hurt.
I should be able to address remotely tomorrow. Stay tuned.
I appreciated jjdurrant's input so i gave him part of the points.
https://search.thawte.com/support/ssl-digital-certificates/index?page=answerlink&url=index%3Fpage%3Dcontent%26id%3DSO14287%26actp%3Dsearch%26viewlocale%3Den_US&answerid=16777216&searchid=1301566898439

Error: The certificate with thumbprint XXXXXXXXX was found but is not valid for use with Exchange Server (reason: PrivateKeyMissing)

Problem


Enable-ExchangeCertificate : The certificate with thumbprint XXXXXXXXX was found but is not valid for use with Exchange Server
 (reason: PrivateKeyMissing).
 At line:1 char:27
 + Enable-ExchangeCertificate -Thumbprint XXXXXXXXX -Services "IIS"


Cause


The above error can be a result of multiple reasons.
 •Certificate Signing Request (CSR) was created with IIS and attempted to be installed through the Exchange Management Shell (EMS).
•Certificate Signing Request (CSR) was created in EMS on another Exchange Server.
•A damaged certificate, or Windows simply "forgets" where it placed the PrivateKey for the certificate.
 
 

Resolution


To resolve this issue during SSL certificate installation in Exchange 2007 server. Perform the following suggested methods.

Method 1: Repair Damaged Certificate (Windows Server 2003/2008)
 
1. Open MMC as described in SO1849 and add the Certificate Snap-In for the Local Computer account.
 
2. Double-Click on the recently imported certificate.

Note: In Windows Server 2008 it will be the certificate missing the golden key beside it.
 
3. Select the Details tab.
 
4. Click on the Serial Number field and copy that string.
 
Note: You may use CTRL+C, but not right-click and copy.
 
5. Open up a command prompt session. (cmd.exe aka DOS Prompt).
 
6. Type: certutil -repairstore my "SerialNumber" (SerialNumber is that which was copied down in step 4.).

7. After running the above command, go back to the MMC and Right-Click Certificates and select Refresh (or hit F5 in the MMC).
 
8. Double-Click on the problem certificate. At the bottom of this window (General tab) it should state: "You have a private key that corresponds to this certificate."
 
Note: In Windows Server 2008 there will be a golden key to the left of the certificate, so there is no need to double-click the certificate.
 
9. Now that the Private Key is attached to the certificate, please proceed to enable Exchange Services described in SO14288.
 

Method 2: Remove and Re-Install Certificate (Windows Server 2003/2008)
 
1. Verify the certificate doesn't have it's private key.
 
In the Microsoft Management Console (MMC), described in SO1849. Double-click the recently imported certificate.

Note: In Windows Server 2008 it will be the certificate missing the golden key beside it.
 
2. Right-Click on the certificate and click Delete.
 
3. Re-install the SSL certificate as described in SO6287.

Method 1 worked for me just fine.
Very good work here. I used this and saved a half a day work waiting for godady !