Skip to main content

CertificateRenewPrivate

Renews an existing platform-generated private certificate, creating a new certificate with an overlapping validity period to ensure uninterrupted EDI communication during the transition.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

CommIDInfo CertificateRenewPrivate(string SessionID, int CommID, int CertKeyID,
short OverlapDays, short Years, CertificateSecureHashAlgorithm SecureHashAlgorithm)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
CommIDintYesIdentifier of the communication channel whose certificate is being renewed
CertKeyIDintYesKey ID of the existing certificate to renew
OverlapDaysshortYesNumber of days before the existing certificate expires that the new certificate should become active; allows partners time to update their trust stores
YearsshortYesValidity duration for the renewed certificate in years
SecureHashAlgorithmCertificateSecureHashAlgorithmYesHashing algorithm to use for the new certificate

Response Object — CommIDInfo

FieldTypeDescription
CommIDintCommunication channel the renewed certificate is attached to
NetworkIDintNetwork owning the channel
MailboxIDintMailbox owning the channel
CommTypestringProtocol type of the channel
StatusstringCurrent channel status
CertKeyIDintIdentifier of the newly generated renewal certificate key
<!-- Example response XML -->
<CommIDInfoResult>
<CommID>5001</CommID>
<NetworkID>1</NetworkID>
<MailboxID>100</MailboxID>
<CommType>AS2</CommType>
<Status>Active</Status>
<CertKeyID>80</CertKeyID>
</CommIDInfoResult>

ENUMs

CertificateSecureHashAlgorithm

ValueDescription
SHA1SHA-1 (established — avoid for renewed certificates)
SHA256SHA-256 (recommended minimum)
SHA384SHA-384
SHA512SHA-512

See Appendix — ENUMs for the complete enumeration definitions.

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Renew an expiring certificate with a 30-day overlap period and 2-year validity
var commInfo = await client.CertificateRenewPrivateAsync(
sessionID,
commID: 5001,
certKeyID: 79,
overlapDays: 30,
years: 2,
secureHashAlgorithm: CertificateSecureHashAlgorithm.SHA256);

Console.WriteLine($"Certificate renewed. New CertKeyID: {commInfo.CertKeyID}");
Console.WriteLine("Share the new public certificate with trading partners during the overlap period.");

REST Equivalent

See Renew CertificatePOST /v2/certificates/renew.