pub struct Identity {
pub cert: PathBuf,
pub key: PathBuf,
}Expand description
A client certificate and its private key, as PEM files: what a relay
that asks for client certificates (--client-ca, #159) takes.
Fields§
§cert: PathBufThe certificate chain, leaf first.
key: PathBufThe private key: PKCS#8, PKCS#1 (RSA) or SEC1 (EC).
Implementations§
Source§impl Identity
impl Identity
Sourcepub fn from_env() -> Result<Option<Self>>
pub fn from_env() -> Result<Option<Self>>
The identity CLIENT_CERT_VAR and CLIENT_KEY_VAR name, if
they are set (an empty one counts as unset).
§Errors
Only one of the two is set.
Trait Implementations§
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Forget for Identity
impl Freeze for Identity
impl Move for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more