> 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/gestor-de-claves/anexo/verificacion-de-claves-intercambiadas.md).

# Verificación de claves intercambiadas

Cuando 2 entidades han utilizado el intercambio de claves, pueden validar de la siguiente forma, en caso de que falle la criptografía:

* En **editran, debe tener puestos los valores:** cifrado = **‘S’,** versión = **400**, editran-gc = ‘**S**’, subsistema-local, subsistema-remoto y algoritmos adecuados.
* Si un extremo tiene puesto en **subsistema-local = P,** **subsistema-remoto = D** de una sesión con cifrado, en la entidad remota, deben haber puesto **el valor inverso**, es decir, D,P.
* Una vez que se está de acuerdo en los valores anteriores:
* Consulta de la versión y clave enviada en un sentido.
* El extremo local, consulta el subsistema que tiene con la entidad remota, por ejemplo, el subsistema p (opción 2 para RSA y 3 para DES).
* El extremo remoto consulta el MISMO subsistema (opción 4 para RSA ó 5 para DES).
* En ambos extremos DEBE DE APARECER la misma VERSION ACTIVA. Si no es así, activar manualmente alguna, poniéndose de acuerdo en ambos extremos para que en ambos quede activa la misma versión.
* Seleccionar el label de versión (cálculo de módulo-exponente para RSA y cifrado para DES). Ambos extremos deben “visualizar” lo mismo.
* Consulta de la versión y clave enviada en el otro sentido.
* El extremo remoto, consulta el subsistema que tiene con nuestra entidad, por ejemplo, el subsistema p (opción 2 para RSA y 3 para DES).
* El extremo local consulta el MISMO subsistema (opción 4 para RSA ó 5 para DES).
* En ambos extremos DEBE DE APARECER la misma VERSION ACTIVA. Si no es así, activar manualmente alguna, poniéndose de acuerdo en ambos extremos para que en ambos quede activa la misma versión.
* Seleccionar el label de versión (cálculo de módulo-exponente para RSA y cifrado para DES). Ambos extremos deben “visualizar” lo mismo.

Ejemplo:

* Si funcionan, dejan TELEGC con CRIPTO N.
* Se ponen de acuerdo para modificar TODAS LAS SESIONES con los siguientes valores:
* EDITRAN: CRIPTO S, Versión cripto 4.0, confidencialidad AES3, Autenticación RSA4, subsistemas Local=N, subsistemas Remoto =N

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

Comprobar que la siguiente transmisión en ambos sentidos funciona bien.


---

# 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/gestor-de-claves/anexo/verificacion-de-claves-intercambiadas.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.
