SQL Flow Field Guide

ALTER CERTIFICATE

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

changes a certificate

What changes

Input
catalog
Output or change
security catalog: certificate

Syntax at a glance

ALTER CERTIFICATE certificate_name REMOVE PRIVATE KEY | WITH PRIVATE KEY ( <private_key_spec> ) | WITH ACTIVE FOR BEGIN_DIALOG = { ON | OFF }

Work example

A certificate needs a planned private-key import or password change.

Confirm the certificate identity, private-key backup, expiry, and rotation owner before handling key files.

Check your work The certificate still validates and its authorized use succeeds in a lab.

Open Microsoft Learn for full syntax, permissions, and details for your version.