Struct blaze_ssl_async::listener::BlazeServerContext
source · pub struct BlazeServerContext {
pub private_key: RsaPrivateKey,
pub certificate_chain: Vec<Certificate>,
}
Expand description
Context state for a SSL server, contains the private key and certificate chain
Fields§
§private_key: RsaPrivateKey
The server private key
certificate_chain: Vec<Certificate>
Collection of server certificates, starting with the server certificate followed by any certificate authority certificates preceeding sequentually upward.
Implementations§
source§impl BlazeServerContext
impl BlazeServerContext
sourcepub fn new(
private_key: RsaPrivateKey,
certificate_chain: Vec<Certificate>
) -> Self
pub fn new( private_key: RsaPrivateKey, certificate_chain: Vec<Certificate> ) -> Self
Creates a new BlazeServerContext from the provided private_key
and
certificate chain
.
Will panic if the provided certificate_chain
is empty
Trait Implementations§
source§impl Default for BlazeServerContext
impl Default for BlazeServerContext
Default BlazeServerContext using the built-in server.key
and server.crt
which can be used to bypass certificate verification on older versions of
EA ProtoSSL
Auto Trait Implementations§
impl RefUnwindSafe for BlazeServerContext
impl Send for BlazeServerContext
impl Sync for BlazeServerContext
impl Unpin for BlazeServerContext
impl UnwindSafe for BlazeServerContext
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