pub type RcgenError = Error;👎Deprecated: Renamed to
Error. We recommend to refer to it by fully-qualifying the crate: rcgen::Error.展开描述
旧名称 Error 的类型别名。
别名类型§
pub enum RcgenError {
Show 15 variants
CouldNotParseCertificate,
CouldNotParseCertificationRequest,
CouldNotParseKeyPair,
InvalidAsn1String(InvalidAsn1String),
InvalidIpAddressOctetLength(usize),
KeyGenerationUnavailable,
UnsupportedSignatureAlgorithm,
RingUnspecified,
RingKeyRejected(String),
Time,
PemError(String),
RemoteKeyError,
UnsupportedInCsr,
InvalidCrlNextUpdate,
IssuerNotCrlSigner,
}变体§
CouldNotParseCertificate
无法解析给定的证书
CouldNotParseCertificationRequest
无法解析给定的证书签名请求
CouldNotParseKeyPair
无法解析给定的密钥对
InvalidAsn1String(InvalidAsn1String)
ASN.1 字符串无效
InvalidIpAddressOctetLength(usize)
提供的 IP 地址是字节数组,但该字节数组的长度无效。
不支持为给定算法生成密钥
UnsupportedSignatureAlgorithm
不支持所请求的签名算法
RingUnspecified
未指明的 ring 错误
RingKeyRejected(String)
ring 库在加载时拒绝了该密钥
Time
时间转换相关错误
PemError(String)
pem crate 的错误
RemoteKeyError
远程密钥操作生成的错误
UnsupportedInCsr
生成 CSR 时不支持的字段
InvalidCrlNextUpdate
证书吊销列表(CRL)的下一次更新无效。
IssuerNotCrlSigner
CRL 签发者指定的 Key Usages 不包含 cRLSign。