Fix generating self-signed certificates on newer versions of GnuTLS.

This commit is contained in:
Sadie Powell 2022-10-11 13:03:15 +01:00
parent c853673b79
commit d24b04308b

View File

@ -56,7 +56,7 @@ if (scalar @ARGV < 1 || $ARGV[0] !~ /^(?:auto|gnutls|openssl)$/i) {
my $certtool = $^O eq 'darwin' ? 'gnutls-certtool' : 'certtool';
# Check whether the user has the required tools installed.
my $has_gnutls = `$certtool --version v 2>/dev/null`;
my $has_gnutls = `$certtool --version=v 2>/dev/null`;
my $has_openssl = !system 'openssl version >/dev/null 2>&1';
# The framework the user has specified.