AS2

AS2 Certificate Expired? How to Fix It Fast

AS2 certificate expired? Learn to tell TLS errors from AS2 errors, confirm the cause in 4 checks, and renew without downtime. Plus automated expiry alerts.

Sandeepani Rathnayaka

Sandeepani Rathnayaka

Published: 19 Nov 2026

Blog image

TL;DR: An AS2 certificate expiry stops EDI exchanges because partners can no longer verify your signatures or decrypt your files. Check the error first: TLS errors such as “certificate has expired” point to an HTTPS certificate, while MDN errors such as decryption-failed or authentication-failed point to an AS2 certificate. To fix it, replace the expired certificate, share only the public certificate with your partner, schedule the switch, and test in both directions. To prevent the next one, start renewals 30 to 60 days ahead (60 to 90 days for slow-moving partners).

Every business that relies on Electronic Data Interchange (EDI) knows how fast operations move. Orders flow in automatically, invoices get processed, and shipments leave the warehouse on time. But then, without any warning, everything stops. Purchase orders fail, partner portals throw errors, and your IT team scrambles to find out what went wrong.

In many cases, the main cause is an AS2 certificate expiry. An expired digital certificate quietly stops data transfers between trading partners. Because Applicability Statement 2 (AS2) relies heavily on encryption and digital signatures, an expired key means your system no longer trusts incoming or outgoing files.

Understanding how to fix an AS2 certificate expiry helps you avoid costly downtime, keep your trading partner connections active, and protect your supply chain operations.

Transport Layer vs. AS2 Security Layer: Spotting the Difference

When troubleshooting a failed connection, you must know where the failure occurred. AS2 communication happens in two different security layers: the Transport Layer (TLS/HTTPS) and the AS2 Protocol Layer.

1. Transport Layer Failures (TLS Level)

AS2 messages can be sent over plain HTTP or over HTTPS. When you or your partner use an HTTPS endpoint, your AS2 software first opens a secure TLS connection before it sends any files. If the SSL/TLS certificate on either side expires (your partner’s server or your own inbound endpoint), that connection fails immediately. Connections that use plain HTTP aren’t affected by TLS certificate expiry, but the AS2 certificates described below still apply.

  • Error Messages: SSL handshake failure, certificate verify failed, or certificate has expired.
  • Impact: No AS2 message is delivered, and no Message Disposition Notification (MDN) is returned because the secure connection died before reaching your AS2 software.

2. AS2 Protocol Layer Failures (Application Level)

Once the connection is open (over HTTP or HTTPS), your AS2 engine takes over to process encrypted data. An AS2 certificate expiry at this level means your system cannot verify signatures or decrypt files:

  • Error Messages: decryption-failed or authentication-failed inside the returned MDN receipt.
  • Impact: The receiving system gets the data but can’t process it, so it usually returns an MDN reporting the error.

Transport layer TLS certificate failure vs AS2 protocol layer certificate failure

Why an Expired AS2 Certificate Blocks Your Data

AS2 protocols protect sensitive business transactions using public key security. To communicate safely, both you and your partner exchange public keys. Your system uses your partner’s public key to encrypt data, and your partner uses your public key to verify your identity.

When an AS2 certificate expiry date passes, most AS2 systems (yours or your partner’s) will reject messages signed or encrypted with that certificate. Here is what happens next:

  • Encryption fails: Systems refuse to encrypt or sign messages with an expired certificate.
  • Decryption errors occur: Partners can’t process incoming files because the certificate linked to the decryption key is no longer valid.
  • MDN receipts bounce: Dropped or failed Message Disposition Notifications mean orders remain unconfirmed.

Because this issue happens at the security layer, your primary software may not give you a direct warning. It simply reports that messages failed to deliver.

The Real Cost of an AS2 Certificate Expiry

A broken AS2 connection is never just a minor technical problem. It immediately impacts business operations and cash flow.

1. Stopped Order Fulfillment

When retail giants send purchase orders via AS2, an expired key drops those messages into error queues. You miss order windows, delay delivery dates, and frustrate your buyers. See a real example: AS2 certificate expiration for a Walmart EDI connection →

2. Heavy Vendor Chargebacks

Many major enterprises enforce strict Service Level Agreements (SLAs). If your technical downtime delays data processing, partners often issue heavy chargebacks or penalty fines.

3. Strained Trading Partner Connections

Maintaining strong trading partner connections over EDI via AS2 requires consistency. When your connection drops out of nowhere, partner support teams spend valuable hours troubleshooting errors on their end.

How to Confirm a Certificate Expiry Is the Cause

  1. Check the error: TLS errors such as “certificate has expired” point to an HTTPS certificate. MDN errors such as decryption-failed or authentication-failed point to an AS2 certificate.
  2. Check your own certificates: Look at the expiry dates of your signing and encryption certificates.
  3. Check your partner’s certificates: Look at the expiry dates of the encryption, signature verification and HTTPS certificates you hold for that partner.
  4. Ask your partner: Confirm whether they have already switched to a new certificate that you haven’t received yet.

MFT Gateway makes these checks easy. On the Certificates page, you can see every station and partner certificate in one list, with its Expire On date, so you can spot expired or soon-to-expire certificates at a glance. To find failed transfers, open Sent Messages or Received Messages and filter by MDN Status. Each failed message shows the MDN Failure Reason, such as decryption-failed or authentication-failed, so you can quickly confirm whether a certificate is the cause.

Not a certificate issue? Check our AS2 troubleshooting guide for other common errors →

MFT Gateway

How to Fix an Expired AS2 Certificate

Once you know which certificate has expired, these steps get traffic moving again. For the full planned renewal process, including overlap windows and partner coordination, see our AS2 certificate renewal guide →

Step 1: Get a Valid Certificate

If your own certificate expired, generate a new self-signed certificate or request a new one from your certificate authority. If your partner’s certificate expired, ask them for their new public certificate.

Step 2: Share Your Public Certificate Only

Export your new public certificate in a standard format (such as .cer or .crt) and send it to your partner’s EDI integration team, with the date and time you plan to activate it. Never share your private key with anyone.

Step 3: Schedule the Switch

Agree on an activation time with your partner, ideally during off-peak hours. Where your software allows it, keep the old certificate available for a short overlap period so messages already in transit are not rejected.

In MFT Gateway, you can schedule the switch in advance instead of doing it by hand:

  • For your own certificate: open your AS2 station, select Schedule Backup Certificate, choose the new certificate, and set the activation date and time. See how
  • For your partner’s certificates: open the partner and use Schedule Backup Encryption Certificate, Schedule Backup Signature Verification Certificate or Schedule Backup HTTPS (TLS/SSL) Certificate, depending on which certificate is changing.

You can reschedule the activation any time before it happens.

Step 4: Test Both Directions

Send a test document (such as an 850 Purchase Order or 846 Inventory Inquiry/Advice) and confirm that sending, receiving and MDNs all pass without errors. Then re-send any documents that failed while the certificate expired.

Best Practices to Prevent the Next Expiry

You do not need to live in fear of your next AS2 certificate expiry. Adopting simple automation habits protects your system from accidental downtime.

  • Set Up Automated Expiry Alarms: Modern cloud services track metrics like days until expiry. Use a platform that warns you automatically. For example, MFT Gateway emails your technical contacts 14, 7, 3, 2, and 1 days before a certificate in use expires.
  • Schedule Backup Certificates: Modern EDI platforms let you load a new certificate alongside the active one and set the date and time it takes over. In MFT Gateway, you can schedule backup encryption, signature, and HTTPS certificates for partners, and a backup certificate for your own station.
  • Start Renewals Early: Begin at least 30 to 60 days before expiry, and 60 to 90 days ahead for partners that move slowly.
  • Maintain Partner Contact Directories: Keep updated email addresses and phone numbers for every partner’s technical contact. When keys need updating, you know exactly who to reach out to.
  • Audit Certificates Regularly: Schedule quarterly reviews of all active EDI security certificates across your system.

AS2 certificate expiry prevention: expiry alerts, backup certificates, partner contacts and audits

Frequently Asked Questions

What happens immediately after an AS2 certificate expiry?

Most AS2 systems, including your partner’s, reject data signed or encrypted with an expired certificate. Transfers using it typically fail until a valid certificate replaces the expired one.

How do I check whether an expired certificate is causing my AS2 failures?

Start with the error. TLS errors such as “certificate has expired” point to an HTTPS certificate, while MDN errors such as decryption-failed or authentication-failed point to an AS2 certificate. Then check the expiry dates of your own signing and encryption certificates and the certificates you hold for the partner, and ask your partner whether they have already switched to a new certificate.

How far in advance should I start an AS2 certificate renewal?

Start at least 30 to 60 days before your AS2 certificate expiry, and 60 to 90 days ahead for partners that move slowly. This gives your trading partners enough time to update their systems without rushing.

Can I schedule an AS2 certificate change in advance?

Yes. In MFT Gateway, you can schedule a backup certificate for your own AS2 station, and backup encryption, signature verification or HTTPS certificates for each partner, with an activation date and time. You can reschedule the activation any time before it happens.

What is the difference between TLS certificates and AS2 certificates?

TLS certificates secure the HTTP transport connection between servers. AS2 certificates sign and encrypt the actual EDI data content inside the connection. Learn more about the types of AS2 certificates vs TLS →

Keep Your Trading Connections Running Smoothly

An AS2 certificate expiry does not have to turn into a major business problem. By setting up automated alerts, maintaining clean documentation, and following a structured renewal process, you can protect your company from unexpected supply chain disruptions.

Don’t wait for a broken connection to reveal an expired key. Check your current certificates today to ensure your trading partner connections remain strong, secure, and fully operational.

Ready to stop worrying about expiry? Get automatic expiry alerts and scheduled certificate swaps with MFT Gateway. Start your 30-day trial.

Sandeepani Rathnayaka

Sandeepani Rathnayaka

Sandeepani is a Senior UI/UX Engineer at Aayu Technologies, specializing in creating seamless and intuitive digital experiences. With a strong passion for design and user-centered solutions, She is committed to delivering exceptional interfaces. Outside of work, Sandeepani enjoys exploring design trends, traveling, and spending quality time with family and friends.
Talk to an EDI Expert
Stay Compliant. Stay Connected. Powered by AS2.

Join hundreds of organizations already taking full control of their B2B AS2 communications with our trusted solutions. Contact us today to tailor a solution that fits your specific AS2 EDI needs.

Request a demo and take a live look at all the features of our AS2 EDI solutions.
Get answers to your questions and explore customizations that we can offer tailored specifically for you.
Get to know the dedicated deployment option available for your specific use cases.
Loading...
Please wait...

We're processing your request

Related Articles

View All Blogs
MFT gateway
Dedicated AS2 Server - B2B Trading via AS2
Explore our product stack

Try before you commit. 30 days, no credit card needed

Get full access to whichever product fits your needs. Configure real trading partner connections, run end-to-end transactions, and see the platform perform before making any commitment. All three products include a free 30-day trial with no restrictions.

Aayu logomark
Driving Innovation, Simplifying Connections.
EDI via AS2
30-day Free Trial
Secure and Compliant