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

# Client certificate authentication

Authenticate OpenID Connect clients in PowerShell Universal with an RSA certificate using a private\_key\_jwt assertion instead of a client secret.

OpenID Connect (OIDC) clients can authenticate to a provider with an RSA certificate instead of a client secret. PowerShell Universal creates a short-lived `private_key_jwt` assertion using PS256 when it redeems the authorization code.

## Requirements

* The identity provider must support `private_key_jwt` client authentication.
* The certificate file must be a PFX that includes an RSA private key.
* The client registration at the identity provider must be configured for the certificate used by PowerShell Universal.

## Configure OIDC

In the OIDC authentication editor under **Secure > Authentication**, provide the certificate path. Optionally provide its password. If the password value is the name of a PSU secret variable, PowerShell Universal resolves that secret at runtime.

The existing OIDC client-secret flow is unchanged. Configure either a client secret or a client certificate for the client authentication method required by your provider.

Use `Set-PSUAuthenticationMethod` to configure the same settings from 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'
```

Keep the certificate file readable by the account that runs PowerShell Universal. Do not store a certificate password in plain text when a PSU secret variable is available.


---

# 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/security/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.
