Solved

Installing digital certificate via powershell

Posted on 2014-11-22
7
25 Views
Last Modified: 2016-06-20
I requested a commercial digital certificate for my Exchange 2010 on Windows 2012 to migrate mailboxes from Exch 2003 to 2010. I then later installed the received commercial certificate  using powershell rather than running the Exchange 2010 EMC to complete the pending request certificate status. I also assigned services using powershell. But I noticed that the CSR status in Exhange Management Console still says "pending". Would that ever go away or do I need to again install the digital certificate but this time use the EMC and also assign the services via EMC?? I am tempted to run it again and complete the pending request via EMC, but I am concern that it may have un-intended effect on the certificate or the exchange configuration. When I used the cmdlet get-exchangecertificate | fl I can see my digital certificate and it did say valid for status and also I can see the services I assigned, and it did say too the CA issuer so it looked like it was installed properly but EMC says otherwise. Any ideas?? Let me know please. Thanks!
0
Comment
Question by:lotusmail1
  • 3
  • 3
7 Comments
 
LVL 2

Expert Comment

by:kittuskattus
Comment Utility
Check the cert you have installed in the certmgr.msc Personal store. In the Properties/General tab does it have the "You have a private key that corresponds to this certificate" message showing?

Capture.PNG
general.PNG
If not, then you need to copy the Thumbprint value on the Details tab and run the following command in Powershell:

Certutil –repairstore My <thumbprint>

thumbprint.PNG
0
 

Author Comment

by:lotusmail1
Comment Utility
Thanks for the reply.
I checked and it did say "You have a private key that corresponds to this certificate"  in the general tab. Would it hurt if I re-run and complete the CSR request via EMC this time? Let me know please. Thanks!
0
 
LVL 2

Expert Comment

by:kittuskattus
Comment Utility
In that case, could it be possible that you initially generated 2 CSRs, and only one has been (correctly) completed?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 2

Expert Comment

by:kittuskattus
Comment Utility
You could try and complete the unfinished CSR through EMC but it's unlikely to work though as I suspect the cert you have may not match the original CSR. If you have it working you should able to cancel the outstanding CSR with no ill effect.
0
 

Author Comment

by:lotusmail1
Comment Utility
That's a good point, but I am not sure as I had somebody performed the CSR request and I heard that he had trouble the first time. I will verify it and get back. Thanks for your quick reply.

Lotusmail1
0
 

Accepted Solution

by:
lotusmail1 earned 0 total points
Comment Utility
Hi there,

Ok I think I found out the reason why the CSR in EMC was still showing despite successful installation of the certificate via Powershell. During the process of installing the certificate via Powershell I had all the services included ie IIS, POP, IMAP, SMTP and Powershell prompted me to respond to a question:
Do you want to enforce SSL communication on the root web site? If not, rerun the cmdlet with the -DoNotRequireSSL parameter. I clicked "No". I should have click "yes" because as far as the system is concern my effort was incomplete hence when I checked the CSR in the EMC the pending request CSR is still showing.  Anyway I went ahead and assigned IIS service via Powershell and that completed the whole CSR request per EMC. Thanks for time and advice. This issue is closed.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Recently, I was assigned the task of performing a hardware refresh in the datacenter. The previous Windows 2008 systems were connected to the SAN via fiber channel HBA’s and among other thing, had PowerPath installed in order to provide sufficient f…
What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

772 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

9 Experts available now in Live!

Get 1:1 Help Now