Re-Certify
Specification
This request is used to generate a replacement certificate for an existing X.509 certificate. It is analogous to the Certify operation, except that the source is an already-issued certificate rather than a public key or CSR.
The server creates a new certificate with a fresh Unique Identifier, copies the subject public key and the requested validity period from the existing certificate, and re-signs it using the specified (or inherited) issuer key.
[KMIP 2.1], ยง6.1.6, "Certify" โ "This request supports the certification of a new public key, as well as the certification of a public key that has already been certified (i.e., certificate update)."
The dedicated
ReCertifyoperation tag (distinct fromCertify) creates the replacement certificate as a new managed object with a new UID, and wires bidirectionalReplacementObjectLink/ReplacedObjectLinkattributes between old and new certificates.
Server behaviour:
- A new Certificate object is created with a fresh Unique Identifier.
- The new certificate is issued with the requested
Offset(activation delay) andNumberOfDaysvalidity, or the issuer's defaults if omitted. ReplacementObjectLinkis added to the old certificate pointing to the new UID.ReplacedObjectLinkis added to the new certificate pointing back to the old UID.- The new certificate enters Active state if its Activation Date is now or
in the past, otherwise Pre-Active. With an
Offsetthe Activation Date isnow + Offset; without it the Activation Date is copied from the old certificate, and the new certificate is Pre-Active if the old one has none. - An Active old certificate becomes Deactivated (Deactivation Date = now); a Deactivated one is unchanged.
The old certificate must be Active or Deactivated, else Permission_Denied.
A source that is not a certificate returns Invalid_Object_Type. The subject
and the issuer are resolved as the requester: a grant on the certificate does
not extend to the owner's issuer key or Certificate Request objects.
Request Payload
| Item | Required | Description |
|---|---|---|
UniqueIdentifier | No | UID of the existing certificate to re-certify. Defaults to the ID Placeholder if omitted. |
CertificateRequestUniqueIdentifier | No | UID of a managed Certificate Request object used as the subject instead of the old certificate. An inline CertificateRequestValue takes precedence. |
CertificateRequestType | No | Type of an optional accompanying certificate request (e.g., PKCS10). Required with CertificateRequestValue (Invalid_Field otherwise). |
CertificateRequestValue | No | Raw certificate request bytes (PEM or DER). Overrides the subject information from the old cert. |
Offset | No | Interval in seconds: the new certificate's Activation Date is now + Offset. Without it the Activation Date is copied from the old certificate (Pre-Active if it has none). The new certificate is Active iff its Activation Date โค now. |
Attributes | No | Desired attributes for the new certificate (e.g., issuer private key ID, issuer certificate ID, number of days). |
ProtectionStorageMasks | No | Permissible protection storage mask selections for the new object. |
Response Payload
| Item | Description |
|---|---|
UniqueIdentifier | The Unique Identifier of the newly created replacement certificate. |
Implementation
The ReCertify operation rotates an X.509 certificate. It is the certificate
equivalent of Re-Key for symmetric keys and Re-Key Key Pair for asymmetric
key pairs.
Key differences vs. Certify with certificate-id-to-re-certify:
| Aspect | ReCertify operation | Certify with existing cert UID |
|---|---|---|
| New UID | Always fresh | Optionally same as old |
| Object links | Bidirectional (old โ new) | Not set automatically |
| Old cert deactivation | Automatic if Active (Deactivated, Deactivation Date = now) | Manual (call Revoke) |
| KMIP operation tag | ReCertify | Certify |
CLI command:
ckms certificates certify \
--certificate-id-to-re-certify <OLD_CERT_UID> \
--issuer-private-key-id <ISSUER_SK_UID> \
--issuer-certificate-id <ISSUER_CERT_UID> \
--number-of-days 365
Example โ Re-certify a self-signed certificate
{
"tag": "ReCertify",
"value": [
{
"tag": "UniqueIdentifier",
"type": "TextString",
"value": "c3d4e5f6-0000-0000-0000-aabbccddeeff"
}
]
}
Example โ Re-certify with a future activation date (Offset)
An Offset of 86400 (24 h) produces a Pre-Active certificate whose
Activation Date is set to Initial Date + 86400 s, allowing a zero-downtime
switchover by pre-staging the replacement before the old one expires.
{
"tag": "ReCertify",
"value": [
{
"tag": "UniqueIdentifier",
"type": "TextString",
"value": "c3d4e5f6-0000-0000-0000-aabbccddeeff"
},
{
"tag": "Offset",
"type": "Interval",
"value": 86400
}
]
}
KMIP link chain after re-certification
An Active old certificate becomes Deactivated (Deactivation Date = now); a Deactivated one is unchanged. To complete the rotation, destroy the old certificate, or revoke it with a compromise reason (a Deactivated object accepts no other revocation reason):
# Destroy the old certificate when no longer needed
ckms certificates destroy --certificate-id <OLD_CERT_UID>
# Or mark it compromised
ckms certificates revoke --certificate-id <OLD_CERT_UID> \
--reason-code key-compromise "key was compromised"