Solved

Exchange 2013 certificate request via power shell

Posted on 2013-06-02
7
668 Views
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.
0
Comment
Question by:mike_toyo
[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
  • 2
7 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 500 total points
ID: 39214630
Try

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, cn=mail.publicdomain.com" -DomainName autodiscover.publicdomain.com -PrivateKeyExportable $True)

Obviously replace the values with your own
0
 

Author Comment

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

This is what I tried and nothing happened.
0
 
LVL 57

Expert Comment

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

Are you sure ?

Try

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, cn=mail.publicdomain.com" -DomainName autodiscover.publicdomain.com -PrivateKeyExportable $True)

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

Author Comment

by:mike_toyo
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.
0
 
LVL 57

Expert Comment

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

Pete
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
In this video we show how to create a mailbox database 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 Servers >> Data…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

738 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