mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Stop asking if users want to generate a self-signed certificate.
Users should be using real certificates in 2021.
This commit is contained in:
parent
03058a043a
commit
1011981f47
27
configure
vendored
27
configure
vendored
@ -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.
|
||||
|
@ -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! *"
|
||||
|
Loading…
x
Reference in New Issue
Block a user