Struct sslhash::AcceptorBuilder
[−]
[src]
pub struct AcceptorBuilder { /* fields omitted */ }
Build an SslAcceptor with a generated (and by default cached) key
Methods
impl AcceptorBuilder
[src]
fn set_bits(self, bits: u32) -> Self
[src]
Set the number of RSA key bits. Default: 3072
fn set_cache_dir(self, cache_dir: Option<PathBuf>) -> Self
[src]
Set the cache directory or disable caching. Default is the same directory as the EXE.
fn build_pkey(self) -> Result<(PKey<Private>, String), AcceptorError>
[src]
Build a random PKey object as well as a hash of the public key
fn build(self) -> Result<(SslAcceptor, String), AcceptorError>
[src]
Build a SslAcceptor with the output of build_pkey