> 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/pt/gestao-de-certificados/api-certificates/api-enrollment.md).

# Registo via 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
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, and the optional `goal` query parameter:

```
GET https://docs.scepman.com/pt/gestao-de-certificados/api-certificates/api-enrollment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
