Skip to content

Commit b3197bc

Browse files
committed
Create 1-update-certificate.PS1
1 parent df67592 commit b3197bc

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Fix/update commercial certificate
2+
#----------------------------------
3+
4+
Get-ExchangeCertificate | Format-List FriendlyName,Subject,CertificateDomains,Thumbprint,Services
5+
6+
enable-ExchangeCertificate -Thumbprint YourThumbprintCODE -Services POP,IMAP,IIS,SMTP
7+
8+
9+
# Set the certificate to be used for server authentication by running the following commands:
10+
#--------------------------------------------------------------------------------------------
11+
12+
Set-AuthConfig -NewCertificateThumbprint YourThumbprintCODE -NewCertificateEffectiveDate (Get-Date)
13+
14+
Set-AuthConfig –PublishCertificate
15+
16+
Set-AuthConfig -ClearPreviousCertificate
17+
18+
# IIS reset has 1 minute downtime at least
19+
IISReset
20+
21+
# OR
22+
• Restart the Microsoft Exchange Service Host Service.
23+
• Either run the IISReset command to restart IIS or run the following commands (in elevated mode) to recycle OWA and ECP Application pools:
24+
25+
Restart-WebAppPool MSExchangeOWAAppPool
26+
Restart-WebAppPool MSExchangeECPAppPool

0 commit comments

Comments
 (0)