EDI | AS2

AS2 Certificate Renewal Process in EDI Connections

AS2 certificate renewal in 5 steps: monitor expiry, get and install the new cert, notify partners, and test. Plus overlap windows and a September check.

Kumudika Rupasinghe

Kumudika Rupasinghe

Modified: 04 Nov 2026

Blog image

TL;DR: AS2 certificate renewal is the process of replacing an expiring encryption or signing certificate before it expires, so trading partners can keep decrypting messages, verifying signatures and returning signed MDNs. Monitor expiry dates, obtain and install the new certificate, share the public certificate with partners along with the go-live date, serial number and usage, then test messages and MDNs in both directions. Start 60 to 90 days ahead and keep an overlap window of two to four weeks.

Electronic Data Interchange (EDI) over Applicability Statement 2 (AS2) protocol is widely used for secure B2B communication. It is especially useful for exchanging sensitive data like purchase orders, invoices, and shipment notices. Encryption and digital signatures play a vital role in AS2 communication to ensure the integrity and confidentiality of such data. For encryption and signing, AS2 uses digital certificates that authenticate and secure the data being exchanged. However, digital certificates have expiration dates, and failing to renew or replace them in time may lead to communication breakdowns. That is why AS2 certificate renewal matters: replacing a certificate before AS2 certificate expiry keeps your EDI messages flowing.

This article outlines the AS2 certificate renewal process in EDI/AS2 connections, discussing the importance of certificates, the steps involved in renewing them, and best practices to ensure smooth operations during the renewal process. It also covers how to plan renewals before peak season and what to do when a partner does not respond.

Importance of Certificates in AS2

The digital certificate is an electronic document that validates the identity of the holder. It contains the public key of the certificate holder along with other identifying information. For a deeper look, read about the role of certificates in AS2. Digital Certificates facilitate 2 primary requirements in AS2 communication:

  1. Encryption: Encryption ensures that the data transmitted between trading entities is protected from unauthorized access. The data is encrypted using the recipient’s public key before being sent and can only be decrypted by the intended recipient using their private key.
  2. Digital Signatures: Digital signatures provide data integrity and authentication. The signature ensures that the message has not been tampered with during transmission, and also verifies the sender’s identity.

Certificates also secure the signed receipts called Message Disposition Notifications (MDNs). So an expired certificate can cause an MDN failure, even when the message itself arrives.

Certificates are typically issued by trusted certificate authorities (CAs) and some may even use self-signed certificates for AS2 transmission. Both are X.509 certificates, as defined in RFC 5280. They are also different from the TLS certificates used for HTTPS. See types of AS2 certificates vs TLS for the differences. These certificates have a defined expiration date and need to be renewed periodically. Before a certificate expires, the parties involved in EDI/AS2 communication are supposed to renew the certificate. The partners should then update configurations on their end with the new certificate. Otherwise, the parties involved in the AS2 connection will no longer be able to decrypt or verify digital signatures, which may lead to communication failures. Therefore, the certificate renewal process is crucial to maintaining secure and uninterrupted EDI/AS2 transactions. For a real-world example, see AS2 certificate expiration for a Walmart EDI connection.

How to Renew an AS2 Certificate: 5 Steps

The AS2 certificate renewal process involves several key steps that need to be carefully managed to avoid any disruptions. Let’s look at the process to renew AS2 certificates:

Certificate Expiry Monitoring

The first step in the renewal process is to keep track of AS2 certificate expiry dates. Organizations must monitor the expiration dates of both their encryption and signing certificates to ensure timely renewal. Automated monitoring tools can be used to send alerts as the expiration date approaches, reducing the risk of overlooking renewal deadlines. For example, MFT Gateway notifies you about every certificate in use, several times before it expires. For partners that move slowly, start the renewal 60 to 90 days ahead.

Obtain a New Certificate

  • If your AS2 trading partner’s certificate is about to expire, you should request a new certificate from your partner.

  • When your organization’s AS2 certificate is about to expire, you can either create a new self-signed certificate or, if you use CA-signed certificates for AS2 communication, you need to generate a new Certificate Signing Request (CSR). In MFT Gateway, you can also renew a self-signed certificate and extend its validity by up to 10 years. A CSR is a message sent from the requesting party to the CA that contains information about the organization and its public key. Once you have submitted the CSR to a trusted CA, the CA will verify the organization’s identity and issue a new digital certificate. This certificate will include the public key and other identifying information about the organization, as well as the CA’s digital signature, certifying its authenticity.

Configure the New Certificate

Once you have obtained a new certificate, the organization must install it on the systems that handle AS2 communications, such as your AS2 server. This includes updating the certificate in the AS2 gateway software and other applications that use the certificate for encryption and signing. If you use separate certificates for encryption and signing, renew and update both. Keep the old certificate and private key until the switchover is complete.

Notify Trading Partners

In an AS2 environment, the receiving party needs to be aware of the certificate changes to continue decrypting messages and verifying signatures. Therefore, timely communication with trading partners is essential in the certificate renewal process. As soon as the new certificate is installed, it’s important to share it with all relevant trading partners so they can update their systems accordingly. For a smooth EDI certificate exchange, include these details:

  • The planned go-live date and time, including the time zone.
  • The certificate serial number and expiry date.
  • Its usage: encryption, signing, or both.

Ask each partner to confirm once they have updated their systems. Never share your private key; only the public certificate should leave your system.

Test the New Certificate

Before returning to full operation, it’s essential to test the new certificate to ensure it is properly configured. Testing should include sending and receiving encrypted and signed messages with trading partners to verify that the new certificate works as expected. Also check that signed MDNs come back successfully in both directions. If a test fails, see our AS2 troubleshooting guide for common certificate errors →

Best Practices for AS2 Certificate Renewal in EDI Connections

Automate Certificate Monitoring

Using automation to track certificate expiration dates can significantly reduce the risk of expired certificates causing communication failures. Automated tools can send alerts well in advance of expiration, allowing sufficient time for renewal. Send these alerts to a shared team mailbox rather than to one person.

Maintain Backup Certificates

To avoid disruptions and mitigate risks during certificate renewal, organizations should maintain backup certificates that can be scheduled and activated if the primary certificate is nearing expiration. These certificates should be tested periodically to ensure they are properly configured. This could be challenging in AS2 systems where different certificates might be used for encryption and signing. In MFT Gateway, you can schedule a backup encryption certificate for a partner so it takes effect on time, without a last-minute manual change. Running AS2 Gateway on your own infrastructure? See how to schedule a station certificate renewal →

Use a Dual-Certificate Overlap Window

A dual-certificate overlap window is a period in which both the old and the new certificates are valid and accepted. It is the safest approach to certificate rotation. Without one, rotation becomes a hard cutover at a fixed time. But partners rarely switch at the same moment. Messages in transit, or retried later, may still use the old certificate. Your AS2 server then rejects them, and live traffic drops.

To avoid this, get the new certificate well before the old one expires. Where your AS2 software allows it, keep the old private key available for decryption while partners move over. Aim for an overlap of at least two to four weeks.

Coordinate with Trading Partners Early

One of the main challenges during certificate renewal is ensuring that all trading partners are informed and have updated their systems with the new certificates. If one party continues to use an expired certificate, communication will fail, leading to delayed transactions. Therefore, it is essential to communicate with trading partners well before the certificate renewal process begins. By giving partners timely notice, they can prepare to update their systems with the new certificates, reducing the risk of failed transactions. Partner-side coordination often takes weeks, as each partner has its own change process. Many retailers also freeze EDI changes during peak season, so start these conversations 30 to 60 days ahead.

Perform Thorough Testing

Before fully deploying a new certificate, organizations should thoroughly test it by exchanging messages with trading partners. This ensures that the certificate is working correctly and that there are no issues with encryption, decryption, or signature verification.

Schedule Certificate Renewal During Low-Traffic Hours

To minimize disruptions, organizations should schedule certificate renewals during time periods with low transaction volumes. This ensures that any issues can be resolved without impacting critical business processes. Avoid month-end and your partners’ cut-off times.

EDIG Logo
AS2 Simplified For You
Like web-based email, but for AS2
Effortless AS2 partner setup
Seamless B2B Integration
Streamline File Transfers with SFTP
Adhering to EDI Compliance

Simplify your AS2 connections and make B2B communication faster, safer, and easier than ever.

Plan Ahead: The September Certificate Check

For many businesses, EDI volume peaks from October through January. A failed renewal in this window costs far more than one in a quiet month. Run a September calendar check every year, before the volume arrives:

  1. Inventory every certificate. List your own certificates and every partner certificate on your AS2 server.
  2. Record each AS2 certificate expiry date and its usage: encryption, signing, or both.
  3. Flag anything expiring from October through January. These are your high-risk renewals.
  4. Sequence the rotations so flagged certificates are renewed before peak volume.

FAQ: AS2 Certificate Renewal

How far in advance should I renew an AS2 certificate?

Start 60 to 90 days before expiry, especially with partners that move slowly. Partner coordination often takes weeks because each partner has its own change process, and many retailers freeze EDI changes during peak season. Once the new certificate is ready, keep an overlap window of at least two to four weeks so both certificates are accepted while partners switch over.

What happens when an AS2 certificate expires?

Most AS2 systems stop trusting an expired certificate. Your partners can no longer encrypt messages to you or verify your signatures, so messages are rejected and EDI exchanges stop. It can also cause MDN failures: the message arrives, but the signed receipt is rejected, so the sender treats it as failed and may resend it. Renewing before expiry, sharing the new certificate with partners in time, and testing in both directions prevents these outages.

What should I send my trading partner when I renew my certificate?

Send the new public certificate with the planned go-live date and time (including the time zone), the certificate serial number and expiry date, and its usage: encryption, signing or both. Ask each partner to confirm once they have updated their systems. Never share your private key; only the public certificate should leave your system.

What is a dual-certificate overlap window?

It is a period when both the old and the new certificates are valid and accepted. Without one, renewal becomes a hard cutover, and messages in transit or retried later with the old certificate get rejected. Get the new certificate well before the old one expires, keep the old private key available for decryption where your AS2 software allows it, and aim for two to four weeks of overlap.

Can I renew a self-signed AS2 certificate?

Yes. You can create a new self-signed certificate, and in MFT Gateway you can renew a self-signed certificate and extend its validity by up to 10 years. If you use CA-signed certificates, you need to generate a new Certificate Signing Request (CSR) and submit it to a trusted certificate authority.

Conclusion

The AS2 certificate renewal process in EDI/AS2 connections is essential for maintaining secure, uninterrupted communication between trading partners. By following a structured renewal process that includes monitoring, testing, and communication, organizations can ensure smooth transitions from old certificates to new ones. With the right approach, businesses can avoid the costly disruptions that can arise from expired certificates, keeping their EDI/AS2 systems running efficiently.

Want simpler certificate renewals? Start your free MFT Gateway trial to get AS2 certificate expiry alerts, easy self-signed renewals, and scheduled backup certificates. Prefer to run AS2 on your own infrastructure? Try AS2 Gateway. Have a question? Contact our AS2 experts.

Kumudika Rupasinghe

Kumudika Rupasinghe

Kumudika is the Principal QA Engineer at Aayu Technologies, bringing over 8.5 years of industry experience. She has a keen eye for detail and committed to delivering high-quality software products. When not testing, Kumudika loves watching sitcoms, enjoying good food, and catching up on sleep—just like a bear in hibernation.
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
EDI Generator
Cloud-Based EDI Solution with AS2 Integration
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