Skip to main content

CertificateTerminate

Permanently terminates a certificate on a communication channel, revoking its use for encryption or signing.

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

:::danger Active AS2 Connections Will Break Terminating a certificate that is currently in use by an AS2 or other communication channel will immediately disrupt EDI exchanges with trading partners that rely on it. Ensure a replacement certificate is in place and partners have been notified before terminating. :::

Method Signature​

bool CertificateTerminate(string SessionID, int CommID, int CertKeyID)

Parameters​

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login()
CommIDintYesIdentifier of the communication channel holding the certificate
CertKeyIDintYesKey ID of the specific certificate to terminate

Response​

Returns a bool indicating whether the termination succeeded.

ValueMeaning
trueCertificate successfully terminated; it will no longer be used for encryption or signing
falseTermination failed; the certificate may already be terminated or the ID is invalid
<!-- Example response XML -->
<CertificateTerminateResult>true</CertificateTerminateResult>

Code Examples​

// .NET 10 — dotnet-svcutil generated proxy
// Terminate an old certificate after a renewal has been fully deployed
// Confirm that the replacement certificate (CertKeyID 80) is active before calling this
bool success = await client.CertificateTerminateAsync(
sessionID,
commID: 5001,
certKeyID: 79);

if (success)
Console.WriteLine("Certificate terminated successfully.");
else
Console.WriteLine("Termination failed — verify CommID and CertKeyID are correct.");

See Also​

REST Equivalent​

See Terminate Certificate — POST /v2/certificates/terminate.