The first thing you need to configure on the AS2 Gateway is a "Trading Station" which is used as your local endpoint of the trading communication, you will receive messages to this trading station and you can send messages from this trading station. A trading station is nearly analogous to a email address.
Lets start with adding a trading station for your organization. First go to the stations view using the "Stations" icon on the left navigation menu. Then on the top menu, click on "New Station" button.
Now you need to fill the required information to configure the trading station you are about to add.
To add the trading station;
Specify a name for the trading station. This is solely used for the organization and viewing of stations within the application, and will not be used in AS2 message communication.
Specify the AS2 identifier, this is the identifier used to identify the AS2 station, analogous to your email id and used in AS2 message communication, this has to be unique among a set of agreed partners, and AS2 Gateway.
Spaces, backslash or double quotes are not allowed for the station AS2 identifier. Minimum length is one and and maximum length should be 128.
Specify an email address to be used in From header of AS2 communication (This is not AS2From, which will be the as2identifier on outgoing messages) Further this email address will be used to send notification for incoming messages.
A small description for this trading station to easily identify it.
If required a maximum of three emails can be added as a comma separated list (without spaces in between) to receive notifications. Primary email should be the first if a list is given.
Toggle "Enable Email Notifications" to false if you do not wish to receive email notification for incoming AS2 messages.
Then we have to configure the certificate for the station. Here we have three options.
Option 1 - Generating a new keystore.
Option 2 - Uploading an existing keystore.
Option 3 - Selecting a certificate from "Certificate Store".
If you are new to AS2 messaging we recommond you to go with Option 1 until you are familiar with the concepts related to certificates.
Specify a common name for the new certificate. This can be your name or your server’s hostname. For example "Rajind Ruparathna" or "www.adroitlogic.com".
Specify the organization unit. This can be a something like section name in your organization. For example "Information Technology"
Specify the organization. This can be your company name. For example "AdroitLogic Lanka (Pvt.) Ltd."
Specify a city. For example "Colombo".
Specify a state. For example "North Western"
Select your country from the drop down list.
Select a preferred key length.
Enter a password for the new key store.
Enter a password for the certificate.
That is all if you are going with option 1.
If you have an already generated key store, you can go with this option.
Enter the password of the keystore.
Browse and select the key store.
Enter the alias of the certificate.
Enter the password for the certificate.
Once the certificate configuration is complete, go ahead and submit the form by clicking on the "Save" button.
Once you add the station, you will be directed to the trading station listing page, from which you can view the partner configurations of the station just created.
Note the actions on the bottom section of the station card are the actions available for a trading station.
Click on the "Partner Config" button of the action panel of the trading station card to see the configuration that you should be sharing with your partners in-order for them to setup a trading partner to send AS2 messages to your organization via the trading station we just created in previous step.
You can use the share configuration option to share this configuration to your partner vi email when required.
Toggle "Attach HTTPS certificates" to true to attach HTTPS certificate of your station when configuration is shared.
Attach the HTTPS certificate only if you plan to use HTTPS when communicating with your partner.
Specify an email address of the partner you want to communicate with.
Click this "Send" button to share the configuration.
Now that we have created a trading station, the next step would be adding a partner so that we can starting communicating.