> 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/fr/securite/enterprise-security/openid-connect/client-certificate-authentication.md).

# Authentification par certificat client

Authentifiez les clients OpenID Connect dans PowerShell Universal avec un certificat RSA à l'aide d'une assertion private\_key\_jwt plutôt qu'un secret client.

Les clients OpenID Connect (OIDC) peuvent s'authentifier auprès d'un fournisseur avec un certificat RSA plutôt qu'avec un secret client. PowerShell Universal crée une assertion `private_key_jwt` de courte durée à l'aide de PS256 lorsqu'il échange le code d'autorisation.

## Exigences

* Le fournisseur d'identité doit prendre en charge l'authentification client `private_key_jwt`.
* Le fichier de certificat doit être un PFX qui inclut une clé privée RSA.
* L'enregistrement du client auprès du fournisseur d'identité doit être configuré pour le certificat utilisé par PowerShell Universal.

## Configurer OIDC

Dans l'éditeur d'authentification OIDC sous **Secure > Authentication**, fournissez le chemin du certificat. Vous pouvez aussi fournir son mot de passe. Si la valeur du mot de passe correspond au nom d'une variable secrète PSU, PowerShell Universal résout ce secret à l'exécution.

Le flux existant avec secret client OIDC demeure inchangé. Configurez soit un secret client, soit un certificat client selon la méthode d'authentification client requise par votre fournisseur.

Utilisez `Set-PSUAuthenticationMethod` pour configurer les mêmes paramètres à partir de PowerShell :

```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'
```

Assurez-vous que le fichier de certificat demeure lisible par le compte qui exécute PowerShell Universal. Ne stockez pas un mot de passe de certificat en texte en clair lorsqu'une variable secrète PSU est disponible.


---

# 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/fr/securite/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.
