AS2 (Applicability Statement 2) is a protocol used to securely exchange business documents over the internet. It is widely used for electronic data interchange (EDI), where businesses exchange documents like purchase orders, invoices, and shipping notices.
AS2 (Applicability Statement 2) works by facilitating the secure exchange of electronic documents over the internet using standard HTTP/S protocols. Here’s a step-by-step overview of how AS2 works:
The sender prepares the business document, which could be an EDI message (e.g., an invoice or purchase order) or any other type of data file (like XML, CSV, or plain text).
Calculate the file’s digest using an algorithm like SHA-1, SHA-256, or MD5. In the AS2 protocol, this digest is referred to as the Message Integrity Check (MIC). After calculating the MIC, the sending partner will store this value in their system, such as in a database or another storage mechanism, for future reference.
Encryption: The packaged data is encrypted using the recipient’s public key, ensuring that only the intended recipient can decrypt and read the content. Digital Signature: The sender signs the document using their private key. This signature verifies the sender’s identity and ensures the data’s integrity (i.e., that it hasn’t been altered during transmission).
The encrypted and signed message is transmitted over the internet using the HTTP or HTTPS protocol. The transmission typically occurs via a direct point-to-point connection between the sender’s and receiver’s AS2 servers.
Decryption: The recipient’s AS2 server receives the message and decrypts it using their private key. Signature Verification: The recipient verifies the sender’s digital signature using the sender’s public key. This step ensures that the message was sent by the claimed sender and has not been tampered with during transmission.
The recipient processes the document according to their internal systems and business rules. Message Disposition Notification (MDN): The recipient sends an MDN back to the sender. This acknowledgment can be sent immediately or after the document has been successfully processed. The MDN confirms receipt and verifies the integrity of the message. The MDN itself is signed, providing non-repudiation for the acknowledgment.
If the transmission fails, or if the recipient’s server encounters an issue (e.g., signature verification fails), an error message is sent back to the sender, allowing for corrective actions.
AS2 is widely adopted in industries that require secure and reliable business-to-business (B2B) communication, especially for EDI transactions.
AS2 is commonly used across various industries, particularly in sectors where secure and reliable business-to-business (B2B) communication is critical. Here are some of the main users of AS2:
Overall, any organization that requires secure, real-time, and reliable electronic data interchange (EDI) may use AS2 to facilitate communication and transactions with their partners, suppliers, and customers.
Setting up an AS2 connection can be approached differently depending on whether you’re using on-premise software, a cloud solution, or a SaaS model. Here’s how each setup typically works:
Traditionally, most software applications have been deployed on-premises within an organization’s data center. AS2 software, in particular, might be installed on physical servers, virtual machines (VMs), or more modern environments like containers or Kubernetes. On-premises software typically operates on Linux or Windows operating systems.
Cloud installations offer a straightforward way to comply with regulatory requirements while hosting applications in a highly available cloud environment. They also enable the use of auto-scaling to ensure optimal availability and performance.
Hosted Software as a Service (SaaS) solutions provide AS2 services that can be available within minutes. Users can easily sign up and configure their AS2 settings through a modern web-based interface. These solutions are generally much more cost-effective, particularly for users with lower volumes, as payments are based on actual usage, allowing for scalable capacity as the business expands.
With MFT Gateway now you can exchange business documents with trading partners with your own AS2 server without having to buy, install and maintain software. It is an all in one platform providing AS2 as a Service with flexible pricing plans that allow usage-based payments.
Take a fully functional trial for 30 days without any restrictions and no credit card required. Start Your 30 day Free Trial Today!
Akila is the Lead UI/UX Engineer at Aayu Technologies producing innovative solutions that bring ultimate user experience to the end-user. She is passionate about Software product design and development, Graphics and Data Visualization. Over 8 years of industry experience she is leading teams to deliver exceptional digital experiences.