diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2022-02-24 23:59:37 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2022-02-25 00:06:25 +0100 |
commit | 58c2c80b585fe51dea56ca13776b51f44ad68463 (patch) | |
tree | 0593108718ac87596f529d3feddd75cd875956f4 /tests | |
parent | 90d0b00313686a8e6a05e807c24d5c460718ba41 (diff) |
tests/certs/generate: Use custom openssl.cnf.
To avoid depending on the system default.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/certs/generate | 3 | ||||
-rw-r--r-- | tests/certs/openssl.cnf | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/certs/generate b/tests/certs/generate index 36fce8b..8e9c451 100755 --- a/tests/certs/generate +++ b/tests/certs/generate @@ -8,6 +8,9 @@ BASEDIR="$(dirname -- "$0")" OU="InterIMAP test suite" cd "$BASEDIR" +OPENSSL_CONF="./openssl.cnf" +export OPENSSL_CONF + cadir="$(mktemp --tmpdir --directory)" trap 'rm -rf -- "$cadir"' EXIT INT TERM genpkey() { diff --git a/tests/certs/openssl.cnf b/tests/certs/openssl.cnf new file mode 100644 index 0000000..b1af7b8 --- /dev/null +++ b/tests/certs/openssl.cnf @@ -0,0 +1,4 @@ +[ req ] +distinguished_name = req_distinguished_name + +[ req_distinguished_name ] |