Conclusion first: an edi sftp key rotation succeeds or fails on your ledger, not on your cryptography. Generating a new key pair takes ten minutes. What actually breaks chains is having thirty-odd partners and no reliable record of who still uses the old key, whose contact left the company two years ago, and which server only wakes up for a midnight batch run. In my implementation work, rotations rarely fail because the technology failed. They fail because a notification email landed in a dead inbox and nobody noticed until purchase orders stopped arriving.

This is not a channel selection article. I am not going to compare AS2, SFTP, and VANs. The channel is already running. The key or certificate is expiring. The only question here is how to rotate it without dropping a single partner, and how to prove, partner by partner, that the cutover actually happened.

I Have Seen This Pit Three Times, and It Is Always the Smallest Partner

Case one. Spring 2024, a home-goods 3PL in New Jersey with more than thirty active EDI partners. The big retailers and big brands all confirmed within days, so the project team felt confident and cut over to the new key on a Friday night. On Saturday morning the warehouse supervisor called: one client's outbound orders had not arrived at all. The missing partner was a small supplier in the Midwest sending only a few dozen orders a week. Their IT was outsourced, and the contact email on file was from the original onboarding three years earlier. That mailbox no longer existed. Orders sat stuck for close to two days, the warehouse re-keyed them manually, and the client still applied a service charge under the contract. I have seen this pit three times, with different casts, and the missing partner is always the quietest one on the list.

Case two is the mirror image: the missed endpoint was their own. Summer 2025, an apparel brand in California ran a tidy edi sftp key rotation. Every partner confirmed. On cutover night they deleted the old key immediately, because keeping it felt untidy. What they forgot was an aging internal server running a nightly batch job with a locally stored old configuration. It could not connect with the new key, so functional acknowledgments were never pulled back that night. Finance found the gap the next day during reconciliation and spent half a day verifying, partner by partner, which messages had actually arrived. The lesson is blunt: your confirmation checklist cannot stop at partners. Every internal host, scheduled job, and test environment that touches that channel belongs on the same list.

Here is the counterintuitive call. The most dangerous move in a rotation is deleting the old key promptly. The security instinct says a retired key should disappear the moment the new one works. The instinct is right about the destination and wrong about the timing. Keeping the old key alive for another week or two is a controlled risk: you can restrict its source addresses and watch its login logs. Deleting it on cutover night is an uncontrolled risk, because you do not yet know which forgotten corner still depends on it. My trade-off is consistent: buy stability with a dual-key overlap window, watch the old key until it shows zero logins for several consecutive days, then schedule its removal as its own separate, confirmed step.

The Rotation Timeline: Thirty Days of Runway, One Evening of Cutover

This is the standard cadence I give clients. If you have more than twenty partners, do not compress it.

When Action Done means
30 days before expiry Rebuild the full partner ledger and verify every contact by phone or ticket A live human responded for every partner, not an auto-reply
21 days before Generate the new key and send the rotation notice with window and rollback terms Notice states the date, your contact, and how to test
14 days before Open the dual-key overlap: old and new keys both valid Every internal server has logged in with the new key in a real test
7 days before Run a connectivity test with each partner and chase the silent ones individually Every partner has a dated test result in the ledger
Cutover day Move partners in batches and watch one full batch cycle after each batch Any failing partner rolls back to the old key immediately
7-14 days after Monitor old-key logins; schedule deletion only after sustained zero logins Send one final confirmation notice before deletion

Three details must be written down, never left to memory. First, send the new key fingerprint through two separate channels, email plus a ticket or a phone read-back, so a typo or a tampered message gets caught. Second, confirmations attach to a named person: who confirmed, on which date, and whether they tested production or the test environment. A ledger full of bare checkmarks is worthless on the night something breaks. Third, test environment first. Get each partner connected with the new key on the test channel before you book the production window. Nobody should be doing a first handshake in production at midnight.

One more distinction that bites people: the login key, the host key, and a channel certificate are three different objects with three different expiry dates, sometimes months apart. Track them in three separate columns with three separate reminders. Otherwise you finish one rotation and discover two more expiring in the same month, and your partners get three change notices in a row and stop reading them.

Rollback Plan and Ledger: You Get Ten Minutes to Decide on the Night

The worst cutover nights are not the ones with errors. They are the ones where an error appears and nobody knows who decides what, so the group chat fills with questions while files pile up. I require a one-page rollback plan before any rotation, one page only, because nobody reads page two at 1 a.m. It answers three things. What signal triggers a rollback, for example a partner missing two consecutive batch cycles or a sudden spike in login failures. Who is authorized to call it, with a name and a phone number, not a job title. And what the rollback physically is: re-enable the old key, notify already-migrated partners to fall back temporarily, log the affected time window, and reconcile in the morning.

Now the arithmetic I use to sell the overlap window to management. Say you have twenty partners and one slips through, breaking the link for a day. The warehouse re-keys orders by hand, customer service explains the delay account by account, and IT spends a night tracing the failure. Together that easily exceeds one person's full week of work, plus whatever service credits the contract triggers. The overlap window costs a maintained spreadsheet and ten days of glancing at a login log, a few hours in total. Put those two numbers side by side and no manager picks the shortcut. People who skip the boring preparation do not save the effort; they pay it back with interest, at night, under pressure.

Keep the ledger itself deliberately simple, one table, no special system. Columns: partner name, named contact and reachable phone, current key version, new key sent, confirmed by name and date, test passed, production cutover date, and whether the old key still shows logins afterward. After each edi sftp key rotation, do not archive that ledger away. It is the starting point for the next rotation, and partner additions and exits should be recorded in it as they happen during the year, not reconstructed in a panic the week before expiry.

Final check, part of my night-before go-live checklist: on the last business day before cutover, compare the partner count in your ledger against the count of partners with actual message traffic in your EDI platform over the last thirty days. If the numbers disagree, the difference is a ghost partner, still exchanging files but missing from your list. I have found more than one of these: a test partner quietly promoted to production years ago, or a client's regional office connected on its own. If the counts do not match, stop and reconcile. Postponing a cutover by a week is cheap. Cutting over with an unknown in the list is how a routine edi sftp key rotation turns into a weekend incident.

That is the whole job. A rotation is not really a technical operation; it is an audit of every partner relationship you have, with a key change attached. Get the people right, keep the overlap window honest, write the rollback plan on one page, and the evening itself becomes boring. Boring is the goal.

By Lin Xiao, WMS Implementation Consultant