From b64fe8320ecbcc3f6099a3c0ae1b2739447bfc76 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 26 Sep 2020 23:32:09 +0100 Subject: Store generated SSL certificates in the .configure directory. Co-Authored-By: Nicole Kleinhoff --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 5c99c2b45..767929a1d 100755 --- a/configure +++ b/configure @@ -393,9 +393,10 @@ EOQ if (<$RealDir/src/modules/m_ssl_*.cpp>) { if (prompt_bool $interactive, $question, $interactive) { - system './tools/genssl', 'auto'; + create_directory CONFIGURE_DIRECTORY, 0750 or print_error "unable to create ${\CONFIGURE_DIRECTORY}: $!"; + system './tools/genssl', 'auto', CONFIGURE_DIRECTORY; } else { - my @pems = <$RealDir/{cert,csr,dhparams,key}.pem>; + my @pems = <${\CONFIGURE_DIRECTORY}/{cert,csr,dhparams,key}.pem>; $question = <