> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/de/data-encryption/encryption-setup/transparent-encryption/iis-encryption-setup.md).

# IIS-Verschlüsselungseinrichtung

Wenn Sie IIS für das Hosting Ihrer On-Premise-Version verwenden, können Sie die Variable im IIS-Konfigurations-Editor wie unten gezeigt einrichten oder als sicherere Alternative auch einen [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) verwenden, um Ihren Schlüssel zu speichern.&#x20;

{% hint style="info" %}
Obwohl Sie den Schlüssel auch direkt in der web.config-Datei speichern könnten, empfehlen wir diese Vorgehensweise nicht und raten dazu, die Umgebungsvariablen entweder auf Host-Ebene oder über den IIS-Konfigurations-Editor wie unten gezeigt zu setzen. &#x20;
{% endhint %}

\
Öffnen Sie die IIS-Verwaltungsoberfläche und rufen Sie die Einstellungen Ihrer Website auf.&#x20;

![](/files/4a28355251428bbf0690b02e85c52f4b0e7ae1f3)

Wählen Sie im Konfigurations-Editor die Option environmentVariables aus

![](/files/c82bc9286c670f636e6278b50ad81634bcafb331)

Dort können Sie den Schlüssel eingeben, der für die Verschlüsselung/Entschlüsselung verwendet wird.

![](/files/85cd887fdedd69cc7a3bb5034c8a2f0194663ce8)

## 🔐 IIS / Azure Key Vault

Um einen Azure Key Vault zum Hosten und Speichern Ihrer ngSurvey-Einstellungen und -Schlüssel zu verwenden, können Sie auf Ihrem Server folgende Umgebungsvariablen setzen.

* **KeyVault:Name** ist der Name Ihres Key Vaults
* **AzureAd:ClientId** ist die Client-ID zum Zugriff auf Ihren Key Vault
* **AzureAd:ClientSecret** ist das Client-Secret zum Zugriff auf Ihren Key Vault


---

# 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 current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/de/data-encryption/encryption-setup/transparent-encryption/iis-encryption-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
