Homelab: client certificates CRL regeneration
Two months ago, I have set up authentication through client certificates.
For reference, I have used this configuration:
let openssl =
https://raw.githubusercontent.com/blackheaven/dhall-openssl/master/package.dhall
in \(caDir : Text) ->
\(service : Text) ->
openssl.mkCaConfig
openssl.CaConfig::{
, distinguishedName = openssl.DistinguishedName::{
, commonName = "${service} client Root Certificate Authority"
}
, allowedHosts = [ "barracuda.local" ]
, caDir
, crlDir = Some "\$base_dir/crl"
, crl = Some "\$base_dir/crl.pem"
, crlNumber = Some "\$base_dir/number"
, defaultCrlDays = Some 30
}
Last month, my certificates were rejected, I have blindly regenerated my CAs.
In fact, it was due to the expiration of the Certificate Revocation List.
I have tried to regenerate the CRL certificate:
##!/usr/bin/env bash
if [;
then
fi
SERVICE=
CA_DIR=client/generated/
/caCRL_DIR=
/crl
I have re-deployed it, but nothing changed.
The thing is nginx
has to be reloaded in order to take it in account.