SQL Flow Field Guide

CREATE CERTIFICATE

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

defines a certificate

What changes

Input
catalog
Output or change
security catalog: certificate

Syntax at a glance

CREATE CERTIFICATE certificate_name [ AUTHORIZATION user_name ] { FROM <existing_keys> | <generate_new_keys> } [ ACTIVE FOR BEGIN_DIALOG = { ON | OFF } ]

Work example

A database needs a certificate for encryption, signing, or a protected database feature.

Record the certificate subject, issuer, expiry, owner, private-key custody, and backup location in the key inventory.

Check your work The certificate is valid for its stated purpose and its private key has a recovery path.

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