1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 05:53:12 +02:00

Update the default SSL filenames to use the Certbot names.

This commit is contained in:
Sadie Powell
2024-01-09 20:51:50 +00:00
parent fa7ad6b3df
commit fce5f4cc0f
3 changed files with 12 additions and 12 deletions
+8 -8
View File
@@ -584,12 +584,12 @@ module { name = "m_sasl" }
*
* You can generate your own certificate and key pair by using:
*
* certtool --generate-privkey --bits 2048 --outfile anope.key
* certtool --generate-self-signed --load-privkey anope.key --outfile anope.crt
* certtool --generate-privkey --bits 2048 --outfile privkey.pem
* certtool --generate-self-signed --load-privkey privkey.pem --outfile fullchain.pem
*
*/
cert = "data/anope.crt"
key = "data/anope.key"
cert = "data/fullchain.pem"
key = "data/privkey.pem"
/*
* Diffie-Hellman parameters to use when acting as a server. This is only
@@ -623,11 +623,11 @@ module { name = "m_sasl" }
*
* You can generate your own certificate and key pair by using:
*
* openssl genrsa -out anope.key 2048
* openssl req -new -x509 -key anope.key -out anope.crt -days 1095
* openssl genrsa -out privkey.pem 2048
* openssl req -new -x509 -key privkey.pem -out fullchain.pem -days 1095
*/
cert = "data/anope.crt"
key = "data/anope.key"
cert = "data/fullchain.pem"
key = "data/privkey.pem"
/*
* As of 2014 SSL 3.0 is considered insecure, but it might be enabled
+2 -2
View File
@@ -334,8 +334,8 @@ public:
{
Configuration::Block *config = conf->GetModule(this);
const Anope::string certfile = config->Get<const Anope::string>("cert", "data/anope.crt");
const Anope::string keyfile = config->Get<const Anope::string>("key", "data/anope.key");
const Anope::string certfile = config->Get<const Anope::string>("cert", "data/fullchain.pem");
const Anope::string keyfile = config->Get<const Anope::string>("key", "data/privkey.pem");
const Anope::string dhfile = config->Get<const Anope::string>("dh", "data/dhparams.pem");
CheckFile(certfile);
+2 -2
View File
@@ -142,8 +142,8 @@ public:
{
Configuration::Block *config = conf->GetModule(this);
this->certfile = config->Get<const Anope::string>("cert", "data/anope.crt");
this->keyfile = config->Get<const Anope::string>("key", "data/anope.key");
this->certfile = config->Get<const Anope::string>("cert", "data/fullchain.pem");
this->keyfile = config->Get<const Anope::string>("key", "data/privkey.pem");
if (Anope::IsFile(this->certfile.c_str()))
{