sigstore-tsa

Crates.iosigstore-tsa
lib.rssigstore-tsa
version0.6.0
created_at2025-11-27 10:22:47.209216+00
updated_at2025-12-17 09:07:54.727565+00
descriptionRFC 3161 Time-Stamp Protocol client for Sigstore
homepage
repositoryhttps://github.com/wolfv/sigstore-rust
max_upload_size
id1953469
size131,323
Wolf Vollprecht (wolfv)

documentation

README

sigstore-tsa

RFC 3161 Time-Stamp Protocol client for sigstore-rust.

Overview

This crate implements the Time-Stamp Protocol as specified in RFC 3161. It provides functionality to request timestamps from Time-Stamp Authorities (TSAs) and verify timestamp responses.

Timestamps provide trusted third-party evidence of when a signature was created, which is essential for verifying signatures after the signing certificate has expired.

Features

  • Timestamp requests: Create and send RFC 3161 timestamp requests
  • Response parsing: Parse and validate timestamp responses
  • Timestamp verification: Verify timestamp tokens against TSA certificates
  • Multiple TSAs: Built-in support for Sigstore TSA and FreeTSA

Usage

use sigstore_tsa::TimestampClient;

// Get a timestamp from the Sigstore TSA
let client = TimestampClient::sigstore();
let timestamp_token = client.timestamp_sha256(&digest).await?;

// Or use the convenience function
let token = sigstore_tsa::timestamp_sigstore(&digest).await?;

ASN.1 Types

The crate provides ASN.1/DER types for RFC 3161 structures:

  • TimeStampReq - Timestamp request
  • TimeStampResp - Timestamp response
  • TstInfo - Timestamp token info
  • Asn1MessageImprint - Hash algorithm and digest (ASN.1 format)

Related Crates

Used by:

License

BSD-3-Clause

Commit count: 0

cargo fmt