Manage attestations with SMCTL
The smctl attest command group provides enterprise-grade attestation signing, verification, and inspection for software supply chain evidence. It creates cryptographically signed attestations using in-toto Statements wrapped in DSSE (Dead Simple Signing Envelope) format, signed using DigiCert® Software Trust Manager keypairs.
This enables customers to:
Sign any type of supply chain evidence, including SBOMs, vulnerability reports, build provenance, and scan results, through a single, unified command.
Verify attestations offline using public keys or certificates, with no network connectivity required.
Inspect attestation contents independently of signature verification.
Generate artifacts that are natively compatible with Cosign.
Before you begin, ensure that prerequisites have been completedy:
Software Trust Manager authentication (required for
attest signonly- Set the required environment variables before running any commands.(Optional) Cosign-for cross-tool verification. Install using
brew install cosign.
Algorithm | Key sizes |
|---|---|
RSA | 3072, 4096 |
ECDSA | P-256, P-384 |
CLI | Evidence format | Default predicate type URI | Auto-detectable |
|---|---|---|---|
| CycloneDX SBOM |
| Yes |
| SPDX SBOM |
| Yes |
| SARIF scan results |
| Yes |
| SLSA build provenance |
| Yes |
| OpenVEX vulnerability exchange |
| Yes |
| Policy verification receipt |
| No |
| Security scan/test results |
| No |
CLI aliases:
Type | Alias |
|---|---|
| cyclonedx |
| cyclonedx |
| slsa-provenance |
Use smctl attest sign to create a signed attestation for supply chain evidence.
smctl attest sign --type <type> --input <file> --keypair-alias <alias> [--output <file>]
Required parameters
Parameter | Short form | Description |
|---|---|---|
|
| Path to the evidence JSON file |
|
| Software Trust Manager keypair alias (as shown in |
Optional parameters
Parameter | Description | Default |
|---|---|---|
| Evidence type: | Auto-detected from file content |
| Output file path for the DSSE envelope | stdout |
| Embed full evidence in the attestation |
|
| Reference mode: store evidence separately, only digest in attestation. Embedded mode includes the full evidence in the signed statement and is the default. In reference mode, the statement's predicate contains a descriptor with the evidence URI, media type, SHA-256 digest, and size in bytes. |
|
| Override the artifact name in the attestation subject. | Evidence filename |
| Pre-computed SHA-256 digest of the artifact being attested. Without To bind an attestation to a specific artifact, provide its SHA-256 digest using --subject-digest and specify its name using | Auto-computed from input file |
| Publish the DSSE envelope to the subject artifact's registry repository using a Cosign-compatible | - |
| Override the | Registry URI for the evidence type |
| URI where the external evidence can be retrieved. Required with | None |
| Optional SHA-256 digest of the evidence in reference mode. Must be 64 hexadecimal characters and match the supplied input bytes. Uppercase and lowercase hexadecimal are accepted. | Computed from the input evidence |
| Signing digest algorithm. This workflow currently accepts only |
Example:
# Sign a CycloneDX SBOM smctl attest sign --type cyclonedx -i sbom.json -k my-signing-key --output attestation.json # Auto-detect evidence type smctl attest sign -i sbom.json -k my-signing-key --output attestation.json # Sign with explicit subject binding (attestation is about a container image) smctl attest sign --type cyclonedx -i sbom.json -k my-signing-key \ --subject-name myapp:v1.0 \ --subject-digest 7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730 \ --output attestation.json # Reference mode (for large evidence files) smctl attest sign \ --type cyclonedx \ --predicate-type-uri https://attestations.digicert.com/cyclonedx/v1 \ --input sbom.json \ --keypair-alias my-signing-key \ --output attestation.json
Use smctl attest verify to verify the cryptographic signature on a DSSE attestation envelope.
smctl attest verify --attestation-file <file> --public-key <key.pem> smctl attest verify --attestation-file <file> --certificate <cert.pem> [--ca-bundle <ca.pem>]
Parameters
Parameter | Description |
|---|---|
| Path to the DSSE attestation envelope JSON file (required) |
| PEM-encoded public key file (mutually exclusive with |
| PEM-encoded certificate file (mutually exclusive with |
| PEM-encoded CA bundle for certificate chain validation (requires |
| Require the statement's predicate type to match a registered evidence name, alias, recognized URI variant, or an exact URI. |
| Require a digest match against any subject in the statement. Does not read or hash a local artifact file. |
| Result format |
Example:
# Verify with a public key smctl attest verify --attestation-file attestation.json --public-key signing-key.pem # Verify with a certificate smctl attest verify --attestation-file attestation.json --certificate signing-cert.pem # Verify with certificate + CA chain validation smctl attest verify --attestation-file attestation.json --certificate signing-cert.pem --ca-bundle ca-bundle.pem
Output:
Signature: VALID Signer: CN=John Doe, O=DigiCert Issuer: CN=DigiCert CA, O=DigiCert Valid From: 2024-01-15 10:00:00 UTC Valid Until: 2025-01-15 10:00:00 UTC Status: Certificate is currently valid
Use smctl attest inspect to decodes and display the contents of a DSSE attestation envelope without performing signature verification.
smctl attest inspect --attestation-file <file>
Required parameters:
Parameter | Description |
|---|---|
| Path to the DSSE attestation envelope JSON file. |
Example:
smctl attest inspect --attestation-file attestation.json
Output (abbreviated)
{
"payloadType": "application/vnd.in-toto+json",
"statementType": "https://in-toto.io/Statement/v1",
"predicateType": "https://cyclonedx.org/bom",
"subjects": [
{
"name": "sbom.json",
"digest": {
"sha256": "75f28e32da932773683e9b867990abc10b59ef6492aefdec9d900c9ef7622d74"
}
}
],
"signatures": [
{
"keyid": "49e9144a448701cb028b6f095fb4bfec0bbf6aee7d6869142e3010585df49760"
}
],
"predicate": { ... full evidence content ... }
}Inspection decodes and displays the statement without verifying the signature. It does not establish trust in the signer or the evidence. In reference mode, it displays the reference descriptor rather than fetching the external evidence.
Attestations produced by smctl attest sign are natively verifiable by cosign, the standard Sigstore verification tool. No DigiCert-specific plugins or configuration are required.
# Sign with smctl smctl attest sign --type cyclonedx -i sbom.json -k my-key --output attestation.json # Verify with stock cosign cosign verify-blob-attestation \ --signature attestation.json \ --key signing-key.pem \ --check-claims=false \ --type "https://cyclonedx.org/bom" \ --insecure-ignore-tlog \ --sbom.json