?
Solved

Installing digital certificate via powershell

Posted on 2014-11-22
7
Medium Priority
?
45 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 2

Expert Comment

by:kittuskattus
ID: 40459416
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
ID: 40459522
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
ID: 40459524
In that case, could it be possible that you initially generated 2 CSRs, and only one has been (correctly) completed?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 2

Expert Comment

by:kittuskattus
ID: 40459525
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
ID: 40459526
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
ID: 40460652
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
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 (…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Suggested Courses

771 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