> 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/server/es/knowledge-base/how-to-articles/allow-devolutions-scheduler-to-read-encrypted-connection-strings.md).

# Permitir que Devolutions Scheduler lea cadenas de conexión cifradas

Conceda al servicio Devolutions Scheduler permiso para leer las cadenas de conexión cifradas en appsettings.json mediante el comando de clave RSA aspnet\_regiis.

### Uso de cuentas de inicio de sesión de SQL Server

Cuando se utilizan cuentas de inicio de sesión de SQL Server, es de suma importancia que el fichero de configuración del servidor (**appsettings.json**) esté cifrado, ya que almacena las cadenas de conexión a la base de datos. Estas incluyen el HostName del servidor de base de datos, el nombre de la base de datos (Initial Catalogue) y las credenciales (User ID y Password).

Sin embargo, dado que el cifrado del fichero **appsettings.json** requiere el uso de ***RsaProtectedConfigurationProvider*** de .NET Framework, se necesitan permisos adicionales para acceder al contenedor ***NetFrameworkConfigurationKey*** utilizado por RSA Provider.

Omitir la obtención de estos permisos impide que ***DevolutionsSchedulerService*** se inicie y devuelve un mensaje de error si la opción ***Disable connection string encryption*** está desactivada en Devolutions Server Console (haga clic con el botón derecho en una instancia y, a continuación, ***Edit –*** ***IIS** –* ***Disable connection string encryption***).

{% hint style="danger" %}
Conceder acceso al contenedor ***NetFrameworkConfigurationKey*** podría suponer un problema de seguridad, por lo que se recomienda no conceder este permiso a ***Network Service*** ni a ***Local Service***.
{% endhint %}

Recomendamos utilizar una cuenta dedicada para el servicio ***DevolutionsSchedulerService*** y configurar el servicio para que se ejecute con ella.

A continuación, ejecute el siguiente comando desde un símbolo del sistema con privilegios elevados:

```bash
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis" -pa "NetFrameworkConfigurationKey" "SchedSvcLocalAccount"
```

Esto debería devolver:

```
Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Adding ACL for access to the RSA Key container...
Succeeded!
```

### Uso de cuentas de dominio de SQL Server (seguridad integrada)

Igual que con las cuentas de inicio de sesión, omitir la obtención de los permisos del contenedor ***NetFrameworkConfigurationKey*** utilizado por RSA Provider impide que ***DevolutionsSchedulerService*** se inicie, y probablemente devuelva este error desde la Consola de servicios de Windows.

La cuenta configurada en ***DevolutionsSchedulerService*** (denominada cuenta VaultDBScheduler en el Pre-Deployment Account Survey) necesitará permiso para leer el contenedor ***NetFrameworkConfigurationKey***.

Para obtenerlos, ejecute el siguiente comando desde un símbolo del sistema con privilegios elevados:

```
"C:\"Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis" -pa "NetFrameworkConfigurationKey" "<YourDomain>\<VaultDBSchedulerAccount>"
```

Esto debería devolver:

```
Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Adding ACL for access to the RSA Key container...
Succeeded!
```


---

# 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 dynamically 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/server/es/knowledge-base/how-to-articles/allow-devolutions-scheduler-to-read-encrypted-connection-strings.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 `build a script that syncs our docs to a CMS` 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.
