proksi 0.3.23

A batteries-included reverse proxy with automatic HTTPS using Cloudflare Pingora and Let's Encrypt.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>;