From LedHed's Wiki
Jump to: navigation, search
(Created page with 'From the Exchange Management Shell Get the current Certificate:<br> Get-ExchangeCertificate -domain "MAIL_SERVER_HOSTNAME" | fl Generate a Certificate with a new expiration da...')
 
Line 1: Line 1:
From the Exchange Management Shell
+
== Get Current Certificate Info ==
 +
From the Exchange Management Shell<br>
  
 
Get the current Certificate:<br>
 
Get the current Certificate:<br>
 
  Get-ExchangeCertificate -domain "MAIL_SERVER_HOSTNAME" | fl
 
  Get-ExchangeCertificate -domain "MAIL_SERVER_HOSTNAME" | fl
 +
 +
 +
== Create a New Certificate ==
 +
From the Exchange Management Shell<br>
  
 
Generate a Certificate with a new expiration date:<br>
 
Generate a Certificate with a new expiration date:<br>
Line 11: Line 16:
 
View the new Certificate:<br>
 
View the new Certificate:<br>
 
  Get-ExchangeCertificate -thumbprint "NEW_CERT_THUMBPRINT" | fl
 
  Get-ExchangeCertificate -thumbprint "NEW_CERT_THUMBPRINT" | fl
 +
 +
 +
== Enable New Certificate for IIS ==
 +
From the Exchange Management Shell<br>
 +
 +
Enable-ExchangeCertificate -thumbprint ""NEW_CERT_THUMBPRINT" -services IIS
 +
 +
 +
 +
== Delete old Certificate ==
 +
From the Exchange Management Shell<br>
 +
 +
Remove-ExchangeCertificate -thumbprint "OLD_CERT_THUMBPRINT"
 +
  
  

Revision as of 18:28, 3 August 2010

Get Current Certificate Info

From the Exchange Management Shell

Get the current Certificate:

Get-ExchangeCertificate -domain "MAIL_SERVER_HOSTNAME" | fl


Create a New Certificate

From the Exchange Management Shell

Generate a Certificate with a new expiration date:

Get-ExchangeCertificate -thumbprint "CURRENT_CERT_THUMBPRINT" | New-ExchangeCertificate

If the current Certificate is in use then you will be prompted to overwrite it.

View the new Certificate:

Get-ExchangeCertificate -thumbprint "NEW_CERT_THUMBPRINT" | fl


Enable New Certificate for IIS

From the Exchange Management Shell

Enable-ExchangeCertificate -thumbprint ""NEW_CERT_THUMBPRINT" -services IIS


Delete old Certificate

From the Exchange Management Shell

Remove-ExchangeCertificate -thumbprint "OLD_CERT_THUMBPRINT"


References

http://exchangepedia.com/2008/01/exchange-server-2007-renewing-the-self-signed-certificate.html