This is for publishing the archive to a web server or similar.
exec openssl ca -config "etc/openssl.conf" -gencrl | \
openssl crl -text -out "crl" 2>@1
+## Call the user hook.
+update-hook
+
###----- That's all, folks --------------------------------------------------
start-skew 1
expire-interval 28
}
+
+proc update-hook {} {
+ exec rsync -av --delete-after crl ca.cert cert req test/publish 2>@stderr
+}
set C(ca-period) 3650
set C(archive-interval) 32
+## The update hook function.
+proc update-hook {} {
+ ## Called by `bin/update': might publish data to a web server, for example.
+}
+
## Read the user configuration.
if {[file exists "$CERTROOT/etc/config.tcl"]} {
source "$CERTROOT/etc/config.tcl"