From 7d3c1bd972c67af3f5006bd02e8ed3655f16bfc7 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 12 Apr 2025 16:25:53 +0200 Subject: tests/email-dns: Factor out all of the secrets/acme stuff into a common dir This makes it easier to re-use this test data for various tests. --- .../em/email-dns/nodes/acme/certs/generate.ca | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100755 tests/by-name/em/email-dns/nodes/acme/certs/generate.ca (limited to 'tests/by-name/em/email-dns/nodes/acme/certs/generate.ca') diff --git a/tests/by-name/em/email-dns/nodes/acme/certs/generate.ca b/tests/by-name/em/email-dns/nodes/acme/certs/generate.ca deleted file mode 100755 index 92832c5..0000000 --- a/tests/by-name/em/email-dns/nodes/acme/certs/generate.ca +++ /dev/null @@ -1,38 +0,0 @@ -#! /usr/bin/env sh - -# Take the correct binary to create the certificates -CERTTOOL=$(command -v gnutls-certtool 2>/dev/null || command -v certtool 2>/dev/null) -if [ -z "$CERTTOOL" ]; then - echo "ERROR: No certtool found" >&2 - exit 1 -fi - -# Create a CA key. -$CERTTOOL \ - --generate-privkey \ - --sec-param "$SEC_PARAM" \ - --key-type "$KEY_TYPE" \ - --outfile ca.key.pem - -chmod 600 ca.key.pem - -# Sign a CA cert. -cat <ca.template -country = $COUNTRY -dns_name = "$SAN" -expiration_days = $EXPIRATION_DAYS -organization = $ORGANIZATION -ca -EOF -#state = $STATE -#locality = $LOCALITY - -$CERTTOOL \ - --generate-self-signed \ - --load-privkey ca.key.pem \ - --template ca.template \ - --outfile ca.cert.pem - -chmod 600 ca.cert.pem - -# vim: ft=sh -- cgit 1.4.1