# AS2

In this area **[AS2 or AS3](AS2-EDI.md)** payload cryptography related settings are configured.

<img src="AS2/as2_user_options2.jpg" width="1600" alt="As 2 user options 2">

**AS2/3 Decryption Key**

**Keystore Path:** the path of a PKCS11 cert store holding the private key used for payload decryption and signing the MDN.\
**Keystore format:** dropdown selector, allows choosing the keystore format type, Java JKS and generic p12 PFX formats are supported.\
**Keystore Password:** enter the password of the keystore here\
**Key name(alias):** the **private cert** identifier (internal name). We load the cert based on it's alias, in case the keystore has multiple certs.\
**Key Password:** the protection password of the private key inside the keystore. In case of JKS type keystores, keystore and key passwords are always identical. PFX may contain unprotected private key, in that case, this field needs to be left empty.

**AS2/3 Signature Verification Key**

**Keystore Path:** the path of a PKCS11 cert store holding the public cert used for payload signature validation.\
**Keystore format:** same as in the above section, to choose the keystore type\
**Keystore Password:** enter the password of the keystore here\
**Key name(alias):** the **public cert** identifier (internal name)

**Unique AS2 filenames** when enabled, a unique random ID is appended to the received file name to prevent overwriting existing files.

**Process As3 Files** toggles support for AS3.
