Struct trust_dns_server::config::TlsCertConfig
[−]
[src]
pub struct TlsCertConfig { /* fields omitted */ }
Configuration for a TLS certificate
Methods
impl TlsCertConfig
[src]
fn get_path(&self) -> &Path
path to the pkcs12 der formated certificate file
fn get_password(&self) -> Option<&str>
optional password for open the pkcs12, none assumes no password
fn create_if_absent(&self) -> bool
if it does not exist, one will be generated (with an EC key)
fn get_subject_name(&self) -> &str
the certificate's subject name, e.g. "ns.example.com"
Trait Implementations
impl Decodable for TlsCertConfig
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<TlsCertConfig, __D::Error>
Deserialize a value using a Decoder
.
impl PartialEq for TlsCertConfig
[src]
fn eq(&self, __arg_0: &TlsCertConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TlsCertConfig) -> bool
This method tests for !=
.