> For the complete documentation index, see [llms.txt](https://docs.editran.onesait.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-iseries/editran-ff/configuracion-de-editran-xades/consulta-de-los-dn-de-los-certificados.md).

# Consulta de los DN de los certificados

Editran/FF utiliza para el control de firmantes remotos el DN del certificado por lo que se debe de facilitar los DN de los certificados con los que se firmen los ficheros a los usuarios remotos. Para ello se utiliza el script obten\_dn.sh, que escribe los DN en un fichero precedidos por la secuencia ‘\* ‘.

Visualiza certificados y exporta sus DN a fichero.

<figure><img src="https://4041620437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F80nfuaOloGPZthms7LSJ%2Fuploads%2Fgit-blob-a1d4c16b7a2a7fb90ebe5a35d400415f99ea700c%2Fimage%20(124).png?alt=media" alt=""><figcaption></figcaption></figure>

Opcion 1 : Certificados con clave pública

Seleccione 1 cuando se quiera obtener el DN de un certificado que contiene la clave privada. En ese caso continua así.

Mostramos un ejemplo:(password: password)

<figure><img src="https://4041620437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F80nfuaOloGPZthms7LSJ%2Fuploads%2Fgit-blob-6bf3c523e0899729bb454acc991cde24139d5946%2Fimage%20(125).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4041620437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F80nfuaOloGPZthms7LSJ%2Fuploads%2Fgit-blob-0d15bc996549760c7a24075c80484609616fbc52%2Fimage%20(126).png?alt=media" alt=""><figcaption></figcaption></figure>

En caso de no escribir ningún almacenamiento se mostrará por pantalla

<figure><img src="https://4041620437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F80nfuaOloGPZthms7LSJ%2Fuploads%2Fgit-blob-1de2271e0af4ed00cce9efb0faa6c0f33f752113%2Fimage%20(127).png?alt=media" alt=""><figcaption></figcaption></figure>

Eligiendo opción 2-Repetir la operación con datos distintos: nos permitirá cambiar el fichero que contiene al certificado, con la opción 3, vuelve a la selección inicial.

Opción 2 – Certificados de clave pública

Para obtener el DN de la clave pública de un certificado o para listar las CA de un truststore se usa la opción 2 del menú inicial.

<figure><img src="https://4041620437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F80nfuaOloGPZthms7LSJ%2Fuploads%2Fgit-blob-3279fe2b58b411c767523adbdadc4675fc69f1fd%2Fimage%20(128).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4041620437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F80nfuaOloGPZthms7LSJ%2Fuploads%2Fgit-blob-a8ccef273514570b9c383e0a2deffa1453bbc3fe%2Fimage%20(129).png?alt=media" alt=""><figcaption></figcaption></figure>

Si no ponemos ninguno:

<figure><img src="https://4041620437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F80nfuaOloGPZthms7LSJ%2Fuploads%2Fgit-blob-8a884df814c8a7ff4de82253ce437ae985e7df11%2Fimage%20(130).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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.editran.onesait.com/documentacion-editran/ibm-editran-v5.3-iseries/editran-ff/configuracion-de-editran-xades/consulta-de-los-dn-de-los-certificados.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.
