pub enum CertificateVerifyError {
BadPublicKey(String),
BadSignature(String),
PayloadEncode(String),
InvalidSignature,
UnsupportedAlgorithm(String),
UnsupportedSignedFields(String),
UntrustedIssuer {
key_id: String,
},
NoTrustConfigured,
}Expand description
Errors verifying an AgentCertificate signature.
Variants§
BadPublicKey(String)
Public key in signature.public_key was not valid base64url or wrong length.
BadSignature(String)
Signature bytes were not valid base64url or wrong length.
PayloadEncode(String)
Could not reconstruct canonical signed payload.
InvalidSignature
Signature did not verify against the embedded public key.
UnsupportedAlgorithm(String)
Signature algorithm is not supported (only ed25519 is recognized).
UnsupportedSignedFields(String)
signed_fields does not name the expected payload composition.
UntrustedIssuer
The embedded signature.public_key is not pinned in the
operator’s trust root store under kind AgentCert. The signature
math may be internally consistent, but the issuer is unknown.
Self-signed certificates an attacker mints to authorize their own
agent’s tool calls land here.
NoTrustConfigured
No trust roots configured at all (or none for kind AgentCert).
Distinct from UntrustedIssuer so the CLI can render the
“configure trust” remediation rather than “key not in store”.
Trait Implementations§
Source§impl Debug for CertificateVerifyError
impl Debug for CertificateVerifyError
Source§impl Display for CertificateVerifyError
impl Display for CertificateVerifyError
Source§impl Error for CertificateVerifyError
impl Error for CertificateVerifyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()