Verwalten des Exchange-Server-OAuth-Zertifikats (2024)

  • Artikel

Allgemeine Informationen

In dieser Dokumentation werden die erforderlichen Schritte beschrieben, um das Exchange Server-Authentifizierungszertifikat zu rotieren, ohne den Exchange-Dienst zu unterbrechen und bevor das aktuelle abläuft.

Tipp

Sie können auch das Skript MonitorExchangeAuthCertificate verwenden. Es führt die erforderlichen Schritte aus, um das OAuth-Zertifikat automatisch zu rotieren. Es kann Ihnen auch helfen, das OAuth-Zertifikat zu ersetzen, wenn es bereits abgelaufen ist.

Die Authentifizierungskonfiguration und das Authentifizierungszertifikat werden vom Microsoft Exchange-Server verwendet, um die Server-zu-Server-Authentifizierung mithilfe des OAuth-Protokollstandards (Open Authorization) zu aktivieren. Weitere Informationen dazu finden Sie im folgenden Artikel: Planen der Exchange-Integration mit SharePoint und Skype for Business

Das Authentifizierungszertifikat wird auch von mehreren Exchange Server-Sicherheitsfeatures verwendet.

Während der Installation des ersten Exchange-Servers generiert die Setuproutine ein selbstsigniertes Zertifikat mit dem Anzeigenamen Microsoft Exchange Server Auth Certificate, das dann einer neuen Authentifizierungskonfiguration hinzugefügt wird. Dieses Zertifikat wird automatisch auf alle Front-End-Server in der Exchange-Organisation repliziert. Exchange Certificate Servicelet führt die Replikation durch, die Teil des MSExchangeServiceHost Prozesses ist. Wenn Sie Ihrer Exchange-Organisation weitere Server hinzufügen, kümmert sich das Servicelet um die Replikation des Zertifikats auf alle Exchange-Server, die der Organisation hinzugefügt wurden.

Das Zertifikat, das als aktuelles Authentifizierungszertifikat konfiguriert ist, kann abgefragt werden, indem die folgende PowerShell-Abfrage (muss in der Exchange-Verwaltungsshell ausgeführt werden) ausgeführt werden:

(Get-AuthConfig).CurrentCertificateThumbprint | Get-ExchangeCertificate | Format-List Subject, Thumbprint, NotAfter, NotBefore

Wenn der Aufruf mit der folgenden Warnung fehlschlägt, bedeutet dies, dass das aktuelle Authentifizierungszertifikat auf dem Server fehlt.

A special Rpc error occurs on server <Servername>: The certificate with thumbprint <AuthCertificateThumbprint> was not found.

Befolgen Sie die Anweisungen im Abschnitt "Welche Schritte müssen ausgeführt werden, wenn das aktuelle Zertifikat bereits abgelaufen ist oder fehlt?", um die Korrektur zu beheben.

Das Zertifikat, das als nächstes Authentifizierungszertifikat konfiguriert ist, kann wie folgt abgefragt werden:

(Get-AuthConfig).NextCertificateThumbprint | Get-ExchangeCertificate | Format-List Subject, Thumbprint, NotAfter, NotBefore

Wenn der Aufruf mit der gleichen Warnung wie für das aktuelle Authentifizierungszertifikat fehlschlägt, bedeutet dies, dass das nächste Authentifizierungszertifikat nicht konfiguriert ist oder auf dem Server fehlt.

Befolgen Sie die Anweisungen unter "Rotieren des Exchange Server-Authentifizierungszertifikats" , wenn das aktuelle Authentifizierungszertifikat bald abläuft.

Welche Schritte müssen ausgeführt werden, wenn das aktuelle Zertifikat bereits abgelaufen ist oder fehlt?

In diesem Fall muss das alte Authentifizierungszertifikat sofort durch ein neues ersetzt werden. Befolgen Sie die Anweisungen im Abschnitt mit den Lösungen des folgenden Supportartikels: Anmeldung bei Outlook im Web oder EAC nicht möglich, wenn das Exchange Server OAuth-Zertifikat abgelaufen ist.

Rotieren des Exchange Server-Authentifizierungszertifikats

Es ist wichtig, das aktive Authentifizierungszertifikat durch ein neues zu ersetzen, bevor es abläuft. Dadurch wird ein reibungsloser Übergang zu einem neuen Zertifikat sichergestellt, ohne den Exchange-Dienst zu unterbrechen. Sie können die folgenden Schritte ausführen, um ein neues Authentifizierungszertifikat vorzubereiten und zu stagen.

Wichtig

Stellen Sie sicher, dass Sie das neueste kumulative Exchange Server-Update (CU) installiert haben, da es Korrekturen enthält, die sich auf das entsprechende Exchange-Feature auswirken.

  1. Generieren Sie ein neues Authentifizierungszertifikat, indem Sie den folgenden Befehl ausführen:

    $newAuthCertificate = New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName "cn=Microsoft Exchange Server Auth Certificate" -FriendlyName "Microsoft Exchange Server Auth Certificate" -DomainName @()
  2. Überschreiben Sie das vorhandene SMTP-Standardzertifikat nicht (geben Sie "N" ein, und drücken Sie die EINGABETASTE):

    ConfirmOverwrite the existing default SMTP certificate?Current certificate: '<DefaultSMTPCertificateThumbprint>' (expires 12/30/2027 2:39:08 PM)Replace it with certificate: '<NewCertificateThumbprint>' (expires 1/5/2028 9:04:48 AM)[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): N
  3. Konfigurieren Sie das Authentifizierungszertifikat so, dass es frühestens in 49 Stunden das neue aktive Zertifikat wird:

    Set-AuthConfig -NewCertificateThumbprint $newAuthCertificate.Thumbprint -NewCertificateEffectiveDate (Get-Date).AddHours(49)

Je nach Größe Ihrer Exchange-Organisation kann es einige Zeit dauern, bis das neue Authentifizierungszertifikat auf allen Exchange-Servern bereitgestellt wird. Es wird empfohlen, mindestens 48 Stunden zu planen, bevor das neu generierte Authentifizierungszertifikat aktiv wird. In einer großen Exchange-Umgebung kann dies noch länger dauern.

Ein Verweis auf das Authentifizierungszertifikat wird vom MSExchangeOWAAppPool Anwendungspool und MSExchangeECPAppPool zwischengespeichert. Sie können diese Anwendungspools wiederverwenden, um diesen Verweis zu aktualisieren. Führen Sie dazu die folgenden Befehle in einem PowerShell-Fenster mit erhöhten Rechten aus:

Restart-WebAppPool MSExchangeOWAAppPoolRestart-WebAppPool MSExchangeECPAppPool

Das Exchange AuthAdmin-Servicelet, das ebenfalls Teil des MSExchangeServiceHost Prozesses ist, ist für den endgültigen Veröffentlichungsprozess des Authentifizierungszertifikats verantwortlich. Das Servicelet wird sofort ausgeführt, wenn der MSExchangeServiceHost Dienst neu gestartet wird. Danach wird es alle 12 Stunden ausgeführt, und wenn erkannt wird, dass erreicht NewCertificateEffectiveDate ist, wird das neue Authentifizierungszertifikat veröffentlicht, um es zum neuen aktiven Zertifikat zu machen.

Um sicherzustellen, dass das AuthAdmin-Servicelet gestartet werden kann, müssen Sie aktivieren AuthAdminReadSession , wenn Ihre Exchange-Server in einer untergeordneten Domäne installiert sind und sich das Systempostfach in der Stammdomäne befindet. Andernfalls kann das AuthAdmin-Servicelet nicht gestartet werden. Führen Sie das folgende PowerShell-Cmdlet aus, wenn Ihre Exchange-Server in der beschriebenen Konstellation installiert sind:

Set-OrganizationConfig -EnableAuthAdminReadSession:$true

Sie können die letzte Laufzeit des AuthAdmin-Servicelets abfragen, indem Sie die folgenden PowerShell-Cmdlets ausführen:

[xml]$xml = Get-ExchangeDiagnosticInfo -Process "Microsoft.Exchange.ServiceHost"$xml.Diagnostics.Components.AnchorApplication.AnchorServiceComponents.CacheScheduler.lastRunTime

Jede Ausführung des AuthAdmin-Servicelets wird im folgenden Verzeichnis protokolliert: <ExchangeInstallPath>\Logging\AuthAdminLogs

Das Servicelet generiert einen neuen Ereignisprotokolleintrag, wenn die Rotation des Authentifizierungszertifikats erfolgreich abgeschlossen wurde:

Log Name: ApplicationSource: MSExchange AuthAdminDate: 12/29/2022 5:56:13 AMEvent ID: 2014Task Category: GeneralLevel: InformationKeywords: ClassicUser: N/ADescription: The current signing certificate for Exchange has been updated to certificate with thumbprint <NewExchangeCertificateThumbprint>.

Häufig gestellte Fragen

Frage: Muss der Hybridkonfigurations-Assistent (HCW) erneut ausgeführt werden, nachdem das Authentifizierungszertifikat ersetzt wurde?

Antwort: Ja, es wird dringend empfohlen, den Hybridkonfigurations-Assistenten (HCW) auszuführen, nachdem das aktive Authentifizierungszertifikat ersetzt wurde.

Frage: Wie gehe ich vor, wenn das neue Authentifizierungszertifikat auf einem Exchange-Server an einem anderen Active Directory-Standort (AD) fehlt?

Antwort: Sie können das Zertifikat mithilfe des Cmdlets Export-ExchangeCertificate exportieren und es über Import-ExchangeCertificate auf einem Server am anderen AD-Standort importieren. Das Zertifikat-Servicelet übernimmt die Replikation auf die verbleibenden Exchange-Server, die sich am AD-Standort befinden.

Verwalten des Exchange-Server-OAuth-Zertifikats (2024)

FAQs

How to remove Microsoft Exchange server auth certificate? ›

Use the Remove-ExchangeCertificate cmdlet to remove existing Exchange certificates or pending certificate requests (also known as certificate signing requests or CSRs) from Exchange servers. For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

What is an exchange server auth certificate? ›

The Auth Configuration and Auth Certificate are used by Microsoft Exchange server to enable server-to-server authentication using the Open Authorization (OAuth) protocol standard. The Auth Certificate is also used by several Exchange Server security features.

How to check if OAuth is enabled? ›

You can verify that the OAuth configuration is correct by using the Test-OAuthConnectivity cmdlet. This cmdlet verifies that the on-premises Exchange and Exchange Online endpoints can successfully authenticate requests from each other.

How to check certificate on exchange server? ›

Use the Get-ExchangeCertificate cmdlet to view Exchange certificates that are installed on Exchange servers. This cmdlet returns Exchange self-signed certificates, certificates that were issued by a certification authority and pending certificate requests (also known as certificate signing requests or CSRs).

How do I turn off certificate authentication? ›

Procedure
  1. Stop the WebSEAL server.
  2. Edit the WebSEAL configuration file. In the [certificate] stanza, specify the following key = value pair: [certificate] accept-client-certs = never.
  3. Restart the WebSEAL server.

How do I remove authentication certificate? ›

Press Windows Key + R Key together, type certmgr. msc, and hit enter. You will get a new window with the list of Certificates installed on your computer. Locate the certificate you want to delete and then click on the Action button then, click on Delete.

How do I validate my OAuth 2.0 token? ›

The token can be verified via introspect endpoint or by signature. The most common way to build built-in token verification into the system is to introspect the token on the API Gateway and verify the signature on other services.

How to check OAuth version? ›

Look at the URL or network logs, If Oauth is used by a site you will see in the URL things like: /Oauth. response_type=code/token. /oauth2.

How to test an OAuth token? ›

In order to test this scenario, make use of an HTTP intercepting proxy such as ZAP and intercept the OAuth traffic.
  1. Step through the authorization process and identify any credentials present in the URL.
  2. If any external resources are included in a page involved with the OAuth flow, analyze the request made to them.

What certificate is needed for Exchange server? ›

In an Exchange hybrid configuration, the certificate on the Exchange server must be a valid 3rd party certificate. These certificates are issued by a trusted vendor, and all clients and servers will automatically trust these vendors and the certificates they issue.

How do I log into my Exchange server? ›

How to sign in with Microsoft Exchange (On-Premise)
  1. Exchange email address.
  2. Exchange password.
  3. Username (also known as EWS username). If you don't have an EWS username, then leave this field blank.
  4. Your custom EWS URL (see How to find your custom EWS URL).
Jun 21, 2024

How do I check my Exchange server? ›

Search for 'Mail' in the Control Panel, open the Mail Setup window, click 'Email Accounts', and select the email account. The Microsoft Exchange Server name will be in the 'Server Information' section. If you're still having trouble, contact the system administrator for help!

How to remove old exchange certificates? ›

Or you can remove the old certificate in the EAC as follows:
  1. Navigate to Servers > Certificates.
  2. For each source transport server that you found in step 2: Select the server. Select the old certificate, and then delete it.
Jan 24, 2024

How do I remove Microsoft certificate authority? ›

Under Roles Summary, select Active Directory Certificate Services. Under Roles Services, select Remove Role Services. Select to clear the Certification Authority check box, and then select Next. On the Confirm Removal Options page, review the information, and then select Remove.

How do I remove Microsoft authenticator from my office account? ›

Go to Azure Active Directory > Security > MFA. Under MFA settings, select Additional cloud-based MFA settings. Under service settings, select Microsoft Authenticator app. Change the setting to Disabled.

How do I remove a service from an Exchange certificate? ›

When you enable a certificate for one or more services, any existing services remain in the Services property and you can't remove the existing services. Instead, configure another certificate for the services and then remove the certificate that you don't want to use.

References

Top Articles
Www.webnetflix.tech Cookies
Little's Funeral Home Smithfield Virginia
No Hard Feelings (2023) Tickets & Showtimes
Is Paige Vanzant Related To Ronnie Van Zant
Craigslist Niles Ohio
CLI Book 3: Cisco Secure Firewall ASA VPN CLI Configuration Guide, 9.22 - General VPN Parameters [Cisco Secure Firewall ASA]
T Mobile Rival Crossword Clue
Guardians Of The Galaxy Showtimes Near Athol Cinemas 8
Women's Beauty Parlour Near Me
Unraveling The Mystery: Does Breckie Hill Have A Boyfriend?
Cosentyx® 75 mg Injektionslösung in einer Fertigspritze - PatientenInfo-Service
Https Www E Access Att Com Myworklife
Concacaf Wiki
Evita Role Wsj Crossword Clue
Roblox Character Added
Lqse-2Hdc-D
Top Hat Trailer Wiring Diagram
What Time Chase Close Saturday
The Banshees Of Inisherin Showtimes Near Regal Thornton Place
Sivir Urf Runes
Becu Turbotax Discount Code
9044906381
Justified Official Series Trailer
Kürtçe Doğum Günü Sözleri
Msu 247 Football
20 Different Cat Sounds and What They Mean
Walgreens Alma School And Dynamite
Between Friends Comic Strip Today
Winco Employee Handbook 2022
Marion City Wide Garage Sale 2023
The best brunch spots in Berlin
Danielle Ranslow Obituary
Arrest Gif
Weather October 15
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
The Posturepedic Difference | Sealy New Zealand
Gina's Pizza Port Charlotte Fl
Devin Mansen Obituary
Best Restaurants In Blacksburg
Levothyroxine Ati Template
Review: T-Mobile's Unlimited 4G voor Thuis | Consumentenbond
Craigslist Free Manhattan
Verizon Outage Cuyahoga Falls Ohio
Lacy Soto Mechanic
Inducement Small Bribe
15 Best Places to Visit in the Northeast During Summer
Bonecrusher Upgrade Rs3
Dineren en overnachten in Boutique Hotel The Church in Arnhem - Priya Loves Food & Travel
Egg Inc Wiki
Ihop Deliver
Joe Bartosik Ms
Craigslist Charlestown Indiana
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 5356

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.