feat: x509

This commit is contained in:
2021-05-02 00:16:39 +08:00
parent 8a4132011a
commit df5f4f723e
7 changed files with 267 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ pub struct AcmeConfig {
pub dir: String,
pub auth_timeout: Option<u64>,
pub csr_timeout: Option<u64>,
pub concurrent: Option<u32>, // ?
}
#[derive(Clone, Debug, Serialize, Deserialize)]
@@ -103,6 +104,10 @@ impl AcmeConfig {
pub fn get_csr_timeout(&self) -> u64 {
self.csr_timeout.unwrap_or(5_000)
}
pub fn get_concurrent(&self) -> u32 {
self.concurrent.unwrap_or(0)
}
}
impl CertConfigItem {