1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

test: Use our own generate_cert helper

The current generate_cert helper was originally taken from Go's source,
and is more complex than we need it to be.

This patch replaces it with our own version, rewritten from scratch
independently.
This commit is contained in:
Alberto Bertogli
2022-08-27 23:27:15 +01:00
parent 21e8d50df6
commit 3eed7cd1a9
2 changed files with 74 additions and 113 deletions

View File

@@ -186,7 +186,7 @@ function generate_certs_for() {
mkdir -p ${CONFDIR}/certs/${1}/
(
cd ${CONFDIR}/certs/${1}
generate_cert -ca -duration=1h -host=${1}
generate_cert -ca -validfor=1h -host=${1}
)
}