diff options
author | Sadie Powell <sadie@witchery.services> | 2020-08-03 12:15:04 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-08-03 12:15:04 +0100 |
commit | 382b278f725aa2a01667e803238f1ab9c74c73ea (patch) | |
tree | a2fda207dbcdf2b09e888172fee766cd501d600a /configure | |
parent | 63dd77804f71e88fc3dcf709745de17bf4f13abd (diff) |
Ask if self-signed certs should be deleted when running configure.
Closes #1793.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -394,6 +394,17 @@ EOQ if (<$RealDir/src/modules/m_ssl_*.cpp>) { if (prompt_bool $interactive, $question, $interactive) { system './tools/genssl', 'auto'; + } else { + my @pems = <$RealDir/{cert,csr,dhparams,key}.pem>; + $question = <<EOQ; +The following self-signed files were previously generated and will be installed +when you run Make. Do you want to delete them? + + * ${\join "\n * ", @pems} +EOQ + if (@pems && prompt_bool $interactive, $question, 0) { + unlink @pems; + } } } else { print_warning <<"EOM"; |