> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/de/zertifikatsverwaltung/api-certificates/self-service-enrollment.md).

# Self-Service-Registrierung

{% hint style="info" %}
Gilt für SCEPman Version 2.9 und höher
{% endhint %}

Damit Clients Zertifikate für sich selbst ohne SCEP registrieren können, können sie die SCEPman REST API verwenden. Sie sollten jedoch nicht in der Lage sein, beliebige Zertifikate zu registrieren, sondern nur Zertifikate, die an ihre eigene Identität gebunden sind. Daher verfügt die SCEPman API über eine Rolle, die Benutzern/Gruppen zugewiesen werden kann, um dies zu ermöglichen.

## Voraussetzungen

* Diese Rolle ist ab SCEPman 2.9 enthalten. Wenn Sie SCEPman zuvor installiert haben, müssen Sie das [Installationsskript](/de/scepman-bereitstellung/permissions/post-installation-config.md#running-the-scepman-installation-cmdlet) erneut ausführen, damit diese Rolle angezeigt wird.

## Zuweisen von Self-Service-Berechtigungen

Sie können überprüfen, ob die Self-Service-Rolle in der App-Registrierung von SCEPman-api vorhanden ist:

<figure><img src="https://2075553437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FNKRfCaiolQQRMoVZ4KIu%2Fimage.png?alt=media&amp;token=0237fecc-2935-47a5-8e06-39cb7ca2b772" alt=""><figcaption></figcaption></figure>

Sie können Rollenzuweisungen für Benutzer und Gruppen in der Enterprise-Anwendung SCEPman-api erstellen.

<figure><img src="https://2075553437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FsTrrI2sHpugkm3U5fx6v%2Fimage.png?alt=media&amp;token=23f31d76-bc00-418d-92c9-77274dddc286" alt=""><figcaption></figcaption></figure>

## Anforderungen für die Zertifikatsregistrierung

Ein Benutzer mit der Self-Service-Rolle kann nur Zertifikate mit den folgenden Attributen registrieren. (Dies sind dieselben Attribute, die Sie bei der Registrierung von Zertifikaten über ein SCEP-Profil in [Intune ](/de/zertifikatsverwaltung/microsoft-intune.md)zum Beispiel auswählen würden). Die Gültigkeit des Zertifikats wird an das Geräteobjekt in Intune oder Entra ID bzw. an das Benutzerobjekt in Entra ID gebunden, analog zu in Intune registrierten Zertifikaten.

{% hint style="info" %}
Wenn Sie das vorgefertigte Registrierungs-Skript aus unserem [Abschnitt Anwendungsfälle](/de/use-cases.md), wird automatisch eine Anforderung gemäß diesen Anforderungen generiert.
{% endhint %}

### Gerätezertifikate

Entweder muss der Subject Alternative Name (SAN) enthalten `IntuneDeviceID://<IntuneDeviceId>` als URI, wobei `<IntuneDeviceId>` ohne die geschweiften Klammern die Geräte-ID des Geräts in Intune ist. Oder das CN-Feld des Betreffs muss die Geräte-ID von Entra ID oder die Intune Device Id sein.

<table><thead><tr><th width="223">Feld</th><th>Wert</th></tr></thead><tbody><tr><td>Betreff</td><td><code>CN=&#x3C;AAD_Device_Id></code> oder <code>CN=&#x3C;DeviceId></code>, wobei das Gerät dem Benutzer gehört.</td></tr><tr><td>SAN (URI)</td><td><code>IntuneDeviceID://&#x3C;IntuneDeviceId></code></td></tr><tr><td>Basisbeschränkungen</td><td><code>Subjekttyp=End Entity</code></td></tr><tr><td>EKUs</td><td><code>Client Authentication, 1.3.6.1.5.5.7.3.2</code></td></tr></tbody></table>

### Benutzerzertifikate

<table><thead><tr><th width="221">Feld</th><th>Wert</th></tr></thead><tbody><tr><td>Betreff</td><td><code>CN=&#x3C;DisplayName></code></td></tr><tr><td>SAN (Anderer Name/UPN)</td><td><code>&#x3C;UserPrincipalName></code></td></tr><tr><td>Basisbeschränkungen</td><td><code>Subjekttyp=End Entity</code></td></tr><tr><td>EKUs</td><td><code>Client Authentication, 1.3.6.1.5.5.7.3.2</code></td></tr></tbody></table>


---

# 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.scepman.com/de/zertifikatsverwaltung/api-certificates/self-service-enrollment.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.
