> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/de/sicherheit/enterprise-security/openid-connect/client-certificate-authentication.md).

# Client-Zertifikat-Authentifizierung

Authentifizieren Sie OpenID Connect-Clients in PowerShell Universal mit einem RSA-Zertifikat unter Verwendung einer private\_key\_jwt-Assertion anstelle eines Client-Secrets.

OpenID Connect (OIDC)-Clients können sich bei einem Anbieter mit einem RSA-Zertifikat anstelle eines Client-Secrets authentifizieren. PowerShell Universal erstellt eine kurzlebige `private_key_jwt`-Assertion mit PS256, wenn der Autorisierungscode eingelöst wird.

## Anforderungen

* Der Identitätsanbieter muss die `private_key_jwt`-Client-Authentifizierung unterstützen.
* Die Zertifikatsdatei muss eine PFX-Datei sein, die einen privaten RSA-Schlüssel enthält.
* Die Client-Registrierung beim Identitätsanbieter muss für das von PowerShell Universal verwendete Zertifikat konfiguriert sein.

## OIDC konfigurieren

Geben Sie im OIDC-Authentifizierungseditor unter **Secure > Authentication** den Zertifikatspfad an. Optional können Sie dessen Passwort angeben. Wenn der Passwortwert der Name einer PSU-Secret-Variablen ist, löst PowerShell Universal dieses Secret zur Laufzeit auf.

Der bestehende OIDC-Client-Secret-Ablauf bleibt unverändert. Konfigurieren Sie entweder ein Client-Secret oder ein Client-Zertifikat für die von Ihrem Anbieter geforderte Client-Authentifizierungsmethode.

Verwenden Sie `Set-PSUAuthenticationMethod`, um dieselben Einstellungen über PowerShell zu konfigurieren:

```powershell
Set-PSUAuthenticationMethod -Type OIDC `
    -CallbackPath '/auth/signin-oidc' `
    -ClientId '00000000-0000-0000-0000-000000000000' `
    -Authority 'https://login.microsoftonline.com/contoso.onmicrosoft.com/v2.0' `
    -ClientCertificate 'C:\certificates\psu-oidc.pfx' `
    -ClientCertificatePassword 'PsuOidcCertificatePassword'
```

Achten Sie darauf, dass die Zertifikatsdatei für das Konto lesbar ist, unter dem PowerShell Universal ausgeführt wird. Speichern Sie ein Zertifikatspasswort nicht im Klartext, wenn eine PSU-Secret-Variable verfügbar ist.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/powershell-universal/de/sicherheit/enterprise-security/openid-connect/client-certificate-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
