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

# Autenticación con certificado de cliente

Autentique clientes de OpenID Connect en PowerShell Universal con un certificado RSA mediante una aserción private\_key\_jwt en lugar de un secreto de cliente.

Los clientes de OpenID Connect (OIDC) pueden autenticarse ante un proveedor con un certificado RSA en lugar de un secreto de cliente. PowerShell Universal crea una aserción `private_key_jwt` de corta duración utilizando PS256 cuando canjea el código de autorización.

## Requisitos

* El proveedor de identidad debe admitir la autenticación de cliente `private_key_jwt`.
* El fichero de certificado debe ser un PFX que incluya una clave privada RSA.
* El registro del cliente en el proveedor de identidad debe estar configurado para el certificado utilizado por PowerShell Universal.

## Configurar OIDC

En el editor de autenticación OIDC, en **Secure > Authentication**, indique la ruta del certificado. Opcionalmente, indique su contraseña. Si el valor de la contraseña es el nombre de una variable secreta de PSU, PowerShell Universal resuelve ese secreto en tiempo de ejecución.

El flujo existente de secreto de cliente de OIDC no cambia. Configure un secreto de cliente o un certificado de cliente según el método de autenticación de cliente que requiera su proveedor.

Utilice `Set-PSUAuthenticationMethod` para configurar los mismos ajustes desde 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'
```

Mantenga el fichero de certificado accesible para la lectura por parte de la cuenta que ejecuta PowerShell Universal. No almacene una contraseña de certificado en texto sin formato cuando esté disponible una variable secreta de PSU.


---

# 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/es/seguridad/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.
