Struct csr_gen::Config
[−]
[src]
pub struct Config { pub key: String, pub csrs: BTreeMap<String, Vec<String>>, }
Configuration for a given private key listing what csrs to sign with a list of domains to include.
Fields
key: String
The private key file name
csrs: BTreeMap<String, Vec<String>>
A mapping from names for the csrs to a list of domain names. The first domain name will be the subject.
Methods
impl Config
[src]
fn from_str(contents: &str) -> Result<Self, Box<Error>>
Create a config from a given string, returning a generic error if the string doesn't represent a valid Config
fn generate_csrs<P: AsRef<Path>>(
&self,
path: P,
key: &PKeyRef
) -> Result<(), Box<Error>>
&self,
path: P,
key: &PKeyRef
) -> Result<(), Box<Error>>
Generates the csrs into the given path.