bin/make-ca-key, lib/func.sh: Make user and group names configurable.
[ca] / bin / issue-crl
CommitLineData
b294f6b5
MW
1#! /bin/sh
2
3set -e
4certroot=$(cd ${0%/*}/..; pwd)
5cd "$certroot"
6. lib/func.sh
7runas_ca
8
9now=$(date +%Y-%m-%d)
10n=0
11while t=$now#$n.crl; [ -f crls/$t ]; do
12 n=$(expr $n + 1)
13done
14openssl ca -config openssl.conf -gencrl -out crls/$t
15rm -f crls/new
16ln -s $t crls/new
17mv crls/new crls/current