Keyboard shortcuts

Press โ† or โ†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sovereign, high-performance data protection

Re-Certify

Re-Certify: a replacement certificate issued from an existing certificate

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.

Re-Certify: the KMS issues the replacement certificate and links both

[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 ReCertify operation tag (distinct from Certify) creates the replacement certificate as a new managed object with a new UID, and wires bidirectional ReplacementObjectLink / ReplacedObjectLink attributes between old and new certificates.

Server behaviour:

  1. A new Certificate object is created with a fresh Unique Identifier.
  2. The new certificate is issued with the requested Offset (activation delay) and NumberOfDays validity, or the issuer's defaults if omitted.
  3. ReplacementObjectLink is added to the old certificate pointing to the new UID.
  4. ReplacedObjectLink is added to the new certificate pointing back to the old UID.
  5. The new certificate enters Active state if its Activation Date is now or in the past, otherwise Pre-Active. With an Offset the Activation Date is now + 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.
  6. 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

ItemRequiredDescription
UniqueIdentifierNoUID of the existing certificate to re-certify. Defaults to the ID Placeholder if omitted.
CertificateRequestUniqueIdentifierNoUID of a managed Certificate Request object used as the subject instead of the old certificate. An inline CertificateRequestValue takes precedence.
CertificateRequestTypeNoType of an optional accompanying certificate request (e.g., PKCS10). Required with CertificateRequestValue (Invalid_Field otherwise).
CertificateRequestValueNoRaw certificate request bytes (PEM or DER). Overrides the subject information from the old cert.
OffsetNoInterval 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.
AttributesNoDesired attributes for the new certificate (e.g., issuer private key ID, issuer certificate ID, number of days).
ProtectionStorageMasksNoPermissible protection storage mask selections for the new object.

Response Payload

ItemDescription
UniqueIdentifierThe 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:

AspectReCertify operationCertify with existing cert UID
New UIDAlways freshOptionally same as old
Object linksBidirectional (old โ†” new)Not set automatically
Old cert deactivationAutomatic if Active (Deactivated, Deactivation Date = now)Manual (call Revoke)
KMIP operation tagReCertifyCertify

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
    }
  ]
}

Re-certified certificate: old Deactivated, new Active, linked both ways

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"