Trust
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
provide.foundation.crypto.certificates.trust
¶
Classes¶
Functions¶
validate_signature_wrapper
¶
Internal helper: Validates signature and issuer/subject match.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
signed_cert
|
Certificate
|
The certificate that was signed |
required |
signing_cert
|
Certificate
|
The certificate that did the signing |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if signature is valid, False otherwise |
Source code in provide/foundation/crypto/certificates/trust.py
verify_trust
¶
Verifies if the other_cert is trusted based on this certificate's trust chain.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cert
|
Certificate
|
The certificate doing the verification |
required |
other_cert
|
Certificate
|
The certificate to verify |
required |
trust_chain
|
list[Certificate]
|
List of trusted certificates |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the certificate is trusted, False otherwise |