Current Series Release Notes¶
0.3.1-10¶
New Features¶
Added support for verifying ML-DSA image signatures:
ML-DSA-44,ML-DSA-65, andML-DSA-87are now valid values for theimg_signature_key_typeimage property.
0.2.4¶
Bug Fixes¶
Fixed an
AttributeErrorraised when importingcursive.signature_utilswithcryptography47.0.0 or newer. cryptography removed the binary elliptic curves (theSECT*classes) in 47.0.0 (pyca/cryptography#14291), but the supported curve list was instantiated eagerly at import time. The list is now built defensively, skipping any curve the installedcryptographyno longer provides. See LP #2155838.
0.2.0¶
Prelude¶
The cursive library supports the verification of digital signatures. However, there is no way currently to validate the certificate used to generate a given signature. Adding certificate validation improves the security of signature verification when each is used together.
New Features¶
Adds a variety of certificate utility functions that inspect certificate attributes and extensions for different settings.
Adds the CertificateVerificationContext class which uses a set of trusted certificates to conduct certificate validation, verifying that a given certificate is part of a certificate chain rooted with a trusted certificate.
Adds a verify_certificate method that loads all certificates needed for certificate validation from the key manager and uses them to create a CertificateVerificationContext object. The context is then used to determine if a certificate is valid.
Upgrade Notes¶
The addition of certificate validation as a separate operation from the signature verification process preserves backwards compatibility. Signatures previously verifiable with cursive will still be verifiable. However, their signing certificates may not be valid. Each signing certificate should be checked for validity before it is used to conduct signature verification.
Security Issues¶
The usage of certificate validation with the signature verification process improves the security of signature verification. A signature should not be considered valid unless its corresponding certificate is also valid.
Other Notes¶
The CertificateVerificationContext is built using a set of trusted certificates. However, to conduct certificate verification the context builds the full certificate chain, starting with the certificate to validate and ending with the self-signed root certificate. If this self-signed root certificate is not present in the context, or if one of the intermediate certificates is not present in the context, the certificate chain cannot be built and certificate validation will fail.