AS2 Gateway Certificate Store allows you to review, generate, renew and manage your key pairs and trusted certificates in one place.
AS2 Gateway has five main certificate types:
STATION: key pairs (private and public keys) assignable to trading stations
PARTNER_CHAIN: chain certificates, usually belonging to certificate authorities (CAs),
as supplementaries for building the
certification-path trust anchors for
HTTPS: (SSL/TLS) certificates assigned to trading partners' secure (
for establishing trust when connecting to send outbound messages/MDNs
HTTPS_CHAIN: supplementary CA certificates to provide trust anchors for
Last two types are rarely used; only if your partner has a HTTPS endpoint with a certificate issued by someone other than the common, globally trusted CAs.
The list view offers common details and operations for all certificate types:
Common Name (CN) field of the certificate identifier (distinguished name, DN)
Alias assigned to the certificate, internally on AS2 Gateway
Expires On; expiration date of the certificate
Type; certificate type (as listed earlier)
Belongs To; the set of entities (partners, stations) that are currently using the certificate, along with the purpose;
e.g. as a station’s private key (
Options to export the certificate as:
CER and CRT files are also of DER format;
if your partner has requested for one of these, often it would be enough to rename (change extension) of the downloaded
STATION certificates (which are actually key pairs), there are additional export options:
To obtain the full key pair (certificate and private key), export the key store using the JKS (Java Keystore) or P12 (PKCS#12) formats.
To renew the certificate through an external CA, use the CSR (certificate signing request) generation option.
You can share the downloaded
.csr file with your CA in order to get the new certificate issued, and then
assign it back to the existing
For many operations like signature verifications, the receiver should be able to build a trust anchor for the sender’s certificate. As explained before, this usually requires that the CA that issued the partner’s certificate, should be trusted at the other end.
If you see errors like "trust anchor for certification path not found", it indicates that your partner’s CA is missing in your certificate store.
In such cases you can simply add the corresponding CA certificate to your store via the Import option.
Once uploaded, the certificate will be saved with type
PARTNER_CHAIN, automatically including it in the trusted certificates collection.
Only certificate files/chains of PEM (
|If you are still in the testing/configuration phase, and you uploaded the certificate to fix a failure on an incoming message, you can replay the message to confirm that it gets processed correctly - without waiting for your partner to send another message.|
You can generate a new key pair (which can later be assigned to a station) using the Generate button.
The process is similar to generating a new keypair for a new trading station. You would provide:
a common name (CN)
identification details (organization/unit, address etc.)
a length for the key being generated
a validity period for the certificate (number of years forward); validity (
NotBefore) starts from the actual time of generation.
a password for securely storing the generated private key
A certificate may need to be renewed if:
it has expired (or is about to expire), or
it has to be reissued (e.g. converting a self-signed certificate into a CA-issued, trusted one)
|In any case, your partner(s) need to configure the renewed certificate on their end; otherwise you will not be able to decrypt messages that they send, and they will not be able to verify message/MDN signatures generated by you. Usually this configuration update has to be performed in a mutually agreed time frame, to keep both ends consistent and prevent breaking of live traffic.|
The Renew certificate button displayed for
STATION type certificates, allows you to perform a renewal in two ways:
Here, the public key of the certificate is signed using its own private key
(using the same distinguished name (DN) attributes that are currently assigned to that certificate).
This results in a self-signed certificate, whose validity (
NotAfter) is set to the timestamps that you specify during renewal.
If you set
|Just like any other self-signed certificate, the renewed certificate will need to be installed and trusted on your partner’s end before AS2 communication can be carried out successfully.|
Here you can merge a trusted (CA-issued) certificate into an existing keypair. This is useful if you decide to convert an existing self-signed keypair (which is already actively being used) into a trusted set, most commonly due to security/compliance requirements of trading partners/systems.
Because a CA is involved, the renewal flow here is not contiguous:
AS2 Gateway generates a certificate signing request (CSR)
file for the key pair (via the Export Now button on the dialog, or the
.csr download option on the certificate list entry).
You submit the CSR file to the CA, who then issues a trusted certificate for it.
You upload and submit the received certificate via the Renew button on the renewal dialog; AS2 Gateway associates the certificate with the original key pair.
Step 3 can be performed separately (independent of the CSR download).
|Currently, a certificate renewal immediately affects the corresponding trading station’s AS2 traffic. We are working on providing a schedule option for certificate updates; when this becomes available, you will be able to set/configure exactly when the renewed certificate will get applied to production traffic, in order to coordinate the update with your trading partner easily and automatically.|