use std::{collections::HashMap, sync::Arc};
use openssl::{
pkey::{PKey, Private},
x509::X509,
};
#[derive(Debug, Clone)]
pub struct Certificate {
pub key: PKey<Private>,
#[allow(clippy::struct_field_names)]
pub certificate: X509,
pub intermediate: Option<Arc<X509>>,
}
pub type CertificateStore = HashMap<String, Certificate>;