Stop asking if users want to generate a self-signed certificate.

Users should be using real certificates in 2021.
This commit is contained in:
Sadie Powell 2021-03-30 21:12:07 +01:00
parent 03058a043a
commit 1011981f47
2 changed files with 1 additions and 27 deletions

27
configure vendored
View File

@ -383,32 +383,7 @@ if (prompt_bool $interactive, $question, 0) {
}
}
# Generate SSL certificates.
$question = <<EOQ;
Would you like to generate a self-signed SSL certificate now? This certificate
can be used for testing but <|BOLD should not|> be used on a production network.
Note: you can get a <|BOLD free|> CA-signed certificate from Let's Encrypt. See
https://letsencrypt.org/getting-started/ for more details.
EOQ
if (<$RealDir/src/modules/m_ssl_*.cpp>) {
if (prompt_bool $interactive, $question, $interactive) {
create_directory CONFIGURE_DIRECTORY, 0750 or print_error "unable to create ${\CONFIGURE_DIRECTORY}: $!";
system './tools/genssl', 'auto', CONFIGURE_DIRECTORY;
} else {
my @pems = <${\CONFIGURE_DIRECTORY}/{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;
}
}
} elsif (!defined $opt_disable_auto_extras) {
if (!<$RealDir/src/modules/m_ssl_*.cpp> && !defined $opt_disable_auto_extras) {
print_error <<"EOM";
You MUST build with at least one SSL module. SSL greatly enhances the
security and privacy of your IRC server and is required for linking servers.

View File

@ -252,7 +252,6 @@ endif
-$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/conf/services/*.example $(EXAPATH)/services
-$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) docs/sql/*.sql $(EXAPATH)/sql
-$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_TXT) @CONFIGURE_DIRECTORY@/help.txt $(CONPATH)
-$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_PRV) @CONFIGURE_DIRECTORY@/*.pem $(CONPATH) 2>/dev/null
@echo ""
@echo "*************************************"
@echo "* INSTALL COMPLETE! *"