wip: implelented SingleServerCrypto struct
This commit is contained in:
parent
e2ea82a344
commit
d657f6d766
6 changed files with 371 additions and 0 deletions
15
rpxy-certs/src/error.rs
Normal file
15
rpxy-certs/src/error.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
use thiserror::Error;
|
||||
|
||||
/// Describes things that can go wrong in the Rpxy certificate
|
||||
#[derive(Debug, Error)]
|
||||
pub enum RpxyCertError {
|
||||
/// Error when reading certificates and keys
|
||||
#[error("Failed to read certificates from file: {0}")]
|
||||
IoError(#[from] std::io::Error),
|
||||
/// Error when parsing certificates and keys to generate a rustls CertifiedKey
|
||||
#[error("Unable to find a valid certificate and key")]
|
||||
InvalidCertificateAndKey,
|
||||
/// Error when parsing client CA certificates: No client certificate found
|
||||
#[error("No client certificate found")]
|
||||
NoClientCert,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue