Contact each of the trading partners with whom you will send AS2 messages:
Obtain the URL of their AS2 server. If the URL begins with HTTPS and the server certificate used by the AS2 server is not signed by a trusted certificate authority, you will need to obtain and import their server certificate.
Obtain their AS2 To ID.
Provide them with your AS2 From ID.
If you plan to encrypt the messages you send them, obtain and import their public certificate.
If you plan to sign your messages, provide the trading partner with your public certificate that matches the private key used to sign messages. If you do not have a private key, follow the steps outlined in the Create an SSL Certificate section to create a private key and its associated public certificate.