Serve PKI files

This commit is contained in:
2024-06-28 22:28:43 +02:00
parent b4647d70a0
commit 9d3e2beb81
6 changed files with 757 additions and 19 deletions

View File

@ -150,7 +150,7 @@ fn gen_certificate(req: GenCertificateReq) -> anyhow::Result<(Vec<u8>, Vec<u8>)>
if let Some(issuer) = req.issuer {
if let Some(crl) = &issuer.crl {
let crl_url = format!(
"{}/crl/{}",
"{}/pki/{}",
AppConfig::get().unsecure_origin(),
crl.file_name().unwrap().to_string_lossy()
);