SQL Flow Field Guide

VERIFYSIGNEDBYCERT

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

cryptographic transform or key lookup

What changes

Input
plaintext or ciphertext and a key, certificate or passphrase
Output or change
ciphertext, plaintext, hash, signature check, or key metadata
Return type
int Returns 1 when signed data is unchanged; otherwise 0.

Syntax at a glance

VerifySignedByCert( Cert_ID , signed_data , signature )

Work example

Verify that a signed payload matches an expected certificate identity.

Use synthetic data in an isolated database. Follow the existing key hierarchy and keep keys and plaintext out of output.

Check your work Treat failed or null verification as untrusted and stop the protected action.

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