Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Exchange 2013 certificate request via power shell

Posted on 2013-06-02
Medium Priority
Last Modified: 2013-06-05
I would like to know what the script is in exchange management shell to make a certificate request then install it.  My certificate was revoked by go daddy and they told me I needed to make a new request.  I cannot open the exchange management console because I get the message the page is not secure due to revoked certificate.  Im assuming there is a way to make this request and install via script.
Question by:mike_toyo
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
  • 2
LVL 57

Accepted Solution

Pete Long earned 1500 total points
ID: 39214630

Set-Content -path ".\mail_publicdomain_com.txt" -Value (New-ExchangeCertificate -GenerateRequest -KeySize 2048 -SubjectName "c=GB, s=Your-State, l=Your-City, o=Your-Org, ou=Your-Department," -DomainName -PrivateKeyExportable $True)

Obviously replace the values with your own

Author Comment

ID: 39216060
Set-Content -path ".\" -Value (New-ExchangeCertificate -GenerateRequest -KeySize 2048 -SubjectName "c=GB, s=Kentucky, l=Franklin, o=Toyo Auto Parts USA Inc, ou=IT," -DomainName -PrivateKeyExportable $True)

This is what I tried and nothing happened.
LVL 57

Expert Comment

by:Pete Long
ID: 39221919
>>This is what I tried and nothing happened.

Are you sure ?


Set-Content -path "C:\mail_publicdomain_com.txt" -Value (New-ExchangeCertificate -GenerateRequest -KeySize 2048 -SubjectName "c=GB, s=Your-State, l=Your-City, o=Your-Org, ou=Your-Department," -DomainName -PrivateKeyExportable $True)

Then go to C:\mail_publicdomain_com.txt is the request there?

Author Comment

ID: 39222511
Peter thanks for your answer.  The request was indeed made and I was able to see it in pending status once I got the Exchange Admin Center working.  I guess I should have asked how to make the request and save the certificate request file so I could send that to my ssl vendor.  Thanks again for your input.
LVL 57

Expert Comment

by:Pete Long
ID: 39223021
No problem, glad you got sorted :)


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

704 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