Secure data transfer between companies, part 2: AS2, AS4 and managed file transfer
AS2, AS4 and managed file transfer also protect EDI and documents at message level. What that means for the post-quantum migration with partners.
- AS2 and AS4 encrypt and sign every message themselves. For post-quantum protection, both the connection and the message have to change.
- The switch only works together. If a counterpart doesn't support the new methods, the connection fails or falls back to classical methods.
- Managed file transfer brings partners, protocols and keys together in one place. That makes it the best lever for an orderly migration.
In many industrial companies, orders, despatch advices and invoices don't run through portals but directly from system to system. There are dedicated standards for this: AS2, AS4 and platforms for managed file transfer (MFT). Secure data transfer goes further here than in part 1 on SFTP, FTPS and HTTPS: not only the connection but every single message is encrypted and signed. That is good for protection and makes the move to post-quantum methods more demanding.
AS2: encryption and receipt in every message
AS2 is described in RFC 4130 and has been widespread in electronic data interchange (EDI) for years. An AS2 message is transmitted over HTTP or HTTPS. The content itself is encrypted and signed with S/MIME, and the recipient returns a signed receipt (MDN).
For post-quantum protection this means:
- Two layers to change: the connection (TLS) and the message (S/MIME using the CMS format). There are now standards for post-quantum key encapsulation in CMS, such as RFC 9629 and RFC 9936. Our article Quantum-safe email, part 1 explains the status, because AS2 uses the same technology.
- Certificates per partner: AS2 partners exchange certificates. New methods mean new certificates and a planned changeover with every partner.
- Receipts as evidence: the MDN proves that a message arrived. If this proof has to hold for a long time, post-quantum signatures also belong on the roadmap; more in Post-quantum signatures.
The IETF is also working on a modernised version of the AS2 specification (draft-ietf-ediint-rfc4130bis, draft, July 2026). If you are buying AS2 software, ask about plans for this draft and for the CMS standards.
AS4: web services with security in the message
AS4 builds on web service standards and protects messages with WS-Security, that is with signature and encryption in XML format. AS4 is widely used in Europe, for example in data exchange with public authorities and for electronic invoices.
The same applies to AS4 as to AS2: connection and message have to be changed, and both sides must support the new methods. Which post-quantum methods an AS4 product supports at message level varies by vendor and belongs in every request.
Key point: With AS2 and AS4, a quantum-safe connection is not enough. The message itself carries its own encryption and signature, and both have to move too.
Managed file transfer: the central lever
MFT platforms bring together what is otherwise scattered: SFTP, FTPS, HTTPS, AS2 and AS4, partner profiles, certificates, schedules and logs. For the post-quantum migration that is an advantage, because you can see and control in one place which partner uses which method.
Vendors usually proceed in phases: first the connections (TLS for AS2 and AS4, SSH for SFTP), then encryption and signatures at message level. This is how a roadmap in the Axway blog on post-quantum cryptography in B2B describes it, for example. For users this means the quick wins are in the connection, the real work is in the messages and partner certificates.
Where individual systems or counterparts cannot follow quickly enough, solutions placed in front of them, such as PQInfraProtect, can at least secure connections between servers against quantum attacks without changing the applications.
What EDI doesn't cover
AS2, AS4 and MFT are made for machine-to-machine traffic: structured messages, fixed partners, fixed formats. A large share of confidential documents, however, travels between people: drawings for a request for quotation, inspection reports after a complaint, contracts for signature. Tools that encrypt on the device, confirm recipients and record access fit better there than an EDI channel. Our article 8D report and supplier complaints shows what that looks like for a supplier complaint.
Frequently asked questions
What is the difference between AS2 and AS4?
AS2 transmits S/MIME-protected messages over HTTP and has long been widespread in EDI. AS4 builds on web service standards and protects messages with WS-Security. Both encrypt and sign every message themselves and provide receipts.
Is AS2 already quantum-safe?
Not automatically. The connection can be protected through TLS with hybrid key exchange. For the message itself, software and partners must support the post-quantum extensions for CMS and exchange new certificates.
Where should the migration start?
With an overview: which partners use which protocol, which software and which certificates? Then change the connections first and, in parallel, agree a date for the message level with the most important partners.
What you can do now
- Create a partner list with crypto status: protocol, software, certificate and validity per partner. Automatic tools such as PQCryptoGuard help; basics in Crypto inventory.
- Ask vendors: roadmap for post-quantum methods at connection and message level, support for the CMS standards, crypto-agility.
- Plan with partners: agree test windows and changeover dates, add requirements to contracts (questionnaire in Are your suppliers quantum-ready?).
- Secure human exchange: for documents between people, use a solution that encrypts before upload, such as Store & Share or guided processes with Partner Flow.
Back to part 1: SFTP, FTPS and HTTPS.
PQVault is a product of QuantiCor Security GmbH, Darmstadt — specialists in post-quantum cryptography. More about QuantiCor Security