# Inscrição por API

{% hint style="info" %}
Este recurso requer a versão **2.3.689** ou superior.
{% endhint %}

{% hint style="warning" %}
Apenas SCEPman Enterprise Edition
{% endhint %}

O SCEPman apresenta uma API REST para registar certificados. Esta é uma alternativa aos endpoints SCEP, que exigem o estilo de autenticação SCEP, enquanto a API REST usa identidades Microsoft para autenticação. O protocolo também é muito mais simples do que o SCEP.

## Pré-requisitos

### 1. Service Principal

### 2. Definições do App Service

## Registo de certificados

Depois de ter preparado os pré-requisitos, pode enviar um POST de um PKCS#10/CMS para o seu SCEPman com o caminho HTTP *api/csr*. A resposta HTTP será o certificado recém-emitido em codificação DER.

O SCEPman armazenará automaticamente todos os certificados emitidos na sua Storage Account, para que os possa listar e revogar convenientemente através do componente Certificate Master.

Um método conveniente para enviar esse pedido é o nosso módulo PowerShell SCEPmanClient:

{% content-ref url="/pages/2aae8b86d34060f6dfbcb6513b3b49e3570aadb3" %}
[SCEPmanClient](/pt/gestao-de-certificados/api-certificates/scepmanclient.md)
{% endcontent-ref %}

## Outros Exemplos

Consulte a nossa [Biblioteca de Exemplos Open Source no GitHub](https://github.com/scepman/csr-request) para descobrir como usar a API REST do SCEPman.


---

# Agent Instructions: 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.scepman.com/pt/gestao-de-certificados/api-certificates/api-enrollment.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.
