> For the complete documentation index, see [llms.txt](https://ajuda.rnp.br/diplomas-digitais/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.rnp.br/diplomas-digitais/passo-a-passo/configurar-certificado-em-nuvem-do-serpro-no-rapsign/obter-chaves-privada-e-publica-do-certificado-ssl-icp-brasil.md).

# Obter chaves privada e pública do certificado SSL ICP-Brasil

A localização específica das chaves podem variar dependendo do servidor web que você está usando (por exemplo, Apache, Nginx, IIS) e do sistema operacional. Aqui estão algumas localizações comuns:

**Servidores Apache**

* **Certificado Público** (.crt ou .pem):
  * Geralmente armazenado em ***/etc/ssl/certs/*** ou ***/etc/httpd/conf/ssl.crt/***.
* **Chave Privada** (.key):
  * Geralmente armazenada em ***/etc/ssl/private/*** ou ***/etc/httpd/conf/ssl.key/***.
* **Arquivo de Configuração**:
  * As configurações do SSL estão no arquivo de configuração do Apache, como ***/etc/httpd/conf/httpd***.conf ou /etc/httpd/conf.d/ssl.conf.

**Servidores Nginx**

* **Certificado Público** (.crt ou .pem):
  * Geralmente armazenado em ***/etc/ssl/certs/***  ou ***/etc/nginx/ssl***/.
* **Chave Privada** (.key):
  * Geralmente armazenada em ***/etc/ssl/private/***  ou ***/etc/nginx/ssl/***.
* **Arquivo de Configuração**:
  * As configurações do SSL estão no arquivo de configuração do Nginx, como ***/etc/nginx/nginx.conf***  ou ***/etc/nginx/conf.d/.***

**Outras Localizações**

* Em sistemas personalizados ou em diferentes distribuições Linux, as localizações podem variar. Algumas distribuições usam /usr/local/ssl/ ou /opt/ssl/ como diretórios padrão para armazenar certificados e chaves.


---

# 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://ajuda.rnp.br/diplomas-digitais/passo-a-passo/configurar-certificado-em-nuvem-do-serpro-no-rapsign/obter-chaves-privada-e-publica-do-certificado-ssl-icp-brasil.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.
