Skip to content

Commit 1faea9d

Browse files
author
Thom
committed
Add DNS-01 verification capability (#4202)
1 parent d53109a commit 1faea9d

29 files changed

+208
-16
lines changed

install/tpl/system.ini.master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ reseller_can_use_options=n
3838
web_php_options=no,fast-cgi,mod,php-fpm
3939
show_aps_menu=n
4040
client_protection=y
41+
acme_dns_user=
42+
acme_dns_password=
43+
acme_dns_api=
44+
acme_dns_api_insecure=n
4145
ssh_authentication=
4246
le_caa_autocreate_options=y
4347

interface/web/admin/form/system_config.tform.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,40 @@
148148
'width' => '30',
149149
'maxlength' => '255'
150150
),
151+
'acme_dns_user' => array (
152+
'datatype' => 'VARCHAR',
153+
'formtype' => 'TEXT',
154+
'default' => '',
155+
'value' => '',
156+
'width' => '30',
157+
'maxlength' => '255'
158+
),
159+
'acme_dns_password' => array (
160+
'datatype' => 'VARCHAR',
161+
'formtype' => 'TEXT',
162+
'default' => '',
163+
'value' => '',
164+
'width' => '30',
165+
'maxlength' => '255'
166+
),
167+
'acme_dns_api' => array (
168+
'datatype' => 'VARCHAR',
169+
'formtype' => 'TEXT',
170+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
171+
'regex' => '/^[0-9a-zA-Z\:\/\-\.\_\[\]\?\=\&]{0,255}$/',
172+
'errmsg'=> 'acme_dns_api_url_error_regex'),
173+
),
174+
'default' => '',
175+
'value' => '',
176+
'width' => '30',
177+
'maxlength' => '255'
178+
),
179+
'acme_dns_api_insecure' => array (
180+
'datatype' => 'VARCHAR',
181+
'formtype' => 'CHECKBOX',
182+
'default' => 'y',
183+
'value' => array(0 => 'n', 1 => 'y')
184+
),
151185
'client_protection' => array (
152186
'datatype' => 'VARCHAR',
153187
'formtype' => 'CHECKBOX',

interface/web/admin/lib/lang/ar_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ $wb['dbname_prefix_txt'] = 'Database name prefix';
66
$wb['dbuser_prefix_txt'] = 'Database user prefix';
77
$wb['shelluser_prefix_txt'] = 'Shell user prefix';
88
$wb['ftpuser_prefix_txt'] = 'FTP user prefix';
9+
$wb['acme_dns_user_txt'] = 'Username for ISPConfig API (used by acme.sh):';
10+
$wb['acme_dns_password_txt'] = 'Password for ISPConfig API (used by acme.sh):';
11+
$wb['acme_dns_api_txt'] = 'API URL for ISPConfig API (used by acme.sh):';
12+
$wb['acme_dns_api_insecure_txt'] = 'Check SSL certificate for ISPConfig API (used by acme.sh):';
913
$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.';
1014
$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.';
1115
$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.';

interface/web/admin/lib/lang/bg_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ $wb['dbname_prefix_txt'] = 'Име на префикса в базата дан
55
$wb['dbuser_prefix_txt'] = 'Потребителски префикс в базата данни';
66
$wb['shelluser_prefix_txt'] = 'Shell user prefix';
77
$wb['ftpuser_prefix_txt'] = 'Потребителски префикс на FTP';
8+
$wb['acme_dns_user_txt'] = 'Username for ISPConfig API (used by acme.sh):';
9+
$wb['acme_dns_password_txt'] = 'Password for ISPConfig API (used by acme.sh):';
10+
$wb['acme_dns_api_txt'] = 'API URL for ISPConfig API (used by acme.sh):';
11+
$wb['acme_dns_api_insecure_txt'] = 'Check SSL certificate for ISPConfig API (used by acme.sh):';
812
$wb['dbname_prefix_error_regex'] = 'Неразрешени символи в името на префикса.';
913
$wb['dbuser_prefix_error_regex'] = 'Неразрешени символи в името на префикса.';
1014
$wb['ftpuser_prefix_error_regex'] = 'Неразрешени символи в името на ftp префикса.';

interface/web/admin/lib/lang/br_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ $wb['vhost_subdomains_txt'] = 'Adicionar subdomínios como um site';
1818
$wb['vhost_subdomains_note_txt'] = 'Você não pode desabilitar esta configuração enquanto existirem subdomínios vhost no sistema!';
1919
$wb['vhost_aliasdomains_txt'] = 'Adicionar alias de domínio como um site';
2020
$wb['vhost_aliasdomains_note_txt'] = 'Você não pode desabilitar esta configuração enquanto existirem alias de domínios vhost no sistema!';
21+
$wb['acme_dns_user_txt'] = 'Username for ISPConfig API (used by acme.sh):';
22+
$wb['acme_dns_password_txt'] = 'Password for ISPConfig API (used by acme.sh):';
23+
$wb['acme_dns_api_txt'] = 'API URL for ISPConfig API (used by acme.sh):';
24+
$wb['acme_dns_api_insecure_txt'] = 'Check SSL certificate for ISPConfig API (used by acme.sh):';
2125
$wb['dbname_prefix_error_regex'] = 'Caractere não permitido para o prefixo do Banco de Dados.';
2226
$wb['dbuser_prefix_error_regex'] = 'Caractere não permitido para o prefixo de usuário do Banco de Dados.';
2327
$wb['ftpuser_prefix_error_regex'] = 'Caractere não permitido para o prefixo de usuário FTP.';

interface/web/admin/lib/lang/ca_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ $wb['vhost_subdomains_txt'] = 'Create subdomains as web site';
1818
$wb['vhost_subdomains_note_txt'] = 'You cannot disable this as long as vhost subdomains exist in the system!';
1919
$wb['vhost_aliasdomains_txt'] = 'Create aliasdomains as web site';
2020
$wb['vhost_aliasdomains_note_txt'] = 'You cannot disable this as long as vhost aliasdomains exist in the system!';
21+
$wb['acme_dns_user_txt'] = 'Username for ISPConfig API (used by acme.sh):';
22+
$wb['acme_dns_password_txt'] = 'Password for ISPConfig API (used by acme.sh):';
23+
$wb['acme_dns_api_txt'] = 'API URL for ISPConfig API (used by acme.sh):';
24+
$wb['acme_dns_api_insecure_txt'] = 'Check SSL certificate for ISPConfig API (used by acme.sh):';
2125
$wb['dbname_prefix_error_regex'] = 'Char not allowed in database name prefix.';
2226
$wb['dbuser_prefix_error_regex'] = 'Char not allowed in database user prefix.';
2327
$wb['ftpuser_prefix_error_regex'] = 'Char not allowed in ftp user prefix.';

interface/web/admin/lib/lang/cz_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ $wb['dbname_prefix_txt'] = 'Prefix názvu databáze';
66
$wb['dbuser_prefix_txt'] = 'Prefix uživatele databáze';
77
$wb['shelluser_prefix_txt'] = 'Prefix shell uživatele';
88
$wb['ftpuser_prefix_txt'] = 'Prefix FTP uživatele';
9+
$wb['acme_dns_user_txt'] = 'Username for ISPConfig API (used by acme.sh):';
10+
$wb['acme_dns_password_txt'] = 'Password for ISPConfig API (used by acme.sh):';
11+
$wb['acme_dns_api_txt'] = 'API URL for ISPConfig API (used by acme.sh):';
12+
$wb['acme_dns_api_insecure_txt'] = 'Check SSL certificate for ISPConfig API (used by acme.sh):';
913
$wb['dbname_prefix_error_regex'] = 'Znak není povolen v prefixu databázovém názvu.';
1014
$wb['dbuser_prefix_error_regex'] = 'Znak není povolen v prefixu databázového uživatele.';
1115
$wb['ftpuser_prefix_error_regex'] = 'Znak není povolen v prefixu FTP uživatele.';

interface/web/admin/lib/lang/de_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ $wb['vhost_subdomains_txt'] = 'Subdomains als Webseite anlegen';
1414
$wb['vhost_subdomains_note_txt'] = 'Diese Einstellung kann nicht wieder deaktiviert werden, wenn Vhost Subdomains im System vorhanden sind!';
1515
$wb['vhost_aliasdomains_txt'] = 'Aliasdomains als Webseite anlegen';
1616
$wb['vhost_aliasdomains_note_txt'] = 'Diese Einstellung kann nicht wieder deaktiviert werden, wenn Vhost Aliasdomains im System vorhanden sind!';
17+
$wb['acme_dns_user_txt'] = 'Username for ISPConfig API (used by acme.sh):';
18+
$wb['acme_dns_password_txt'] = 'Password for ISPConfig API (used by acme.sh):';
19+
$wb['acme_dns_api_txt'] = 'API URL for ISPConfig API (used by acme.sh):';
20+
$wb['acme_dns_api_insecure_txt'] = 'Check SSL certificate for ISPConfig API (used by acme.sh):';
1721
$wb['dbname_prefix_error_regex'] = 'Zeichen nicht erlaubt in Datenbank Namen Präfix.';
1822
$wb['dbuser_prefix_error_regex'] = 'Zeichen nicht erlaubt in Datenbank Benutzer Präfix.';
1923
$wb['ftpuser_prefix_error_regex'] = 'Zeichen nicht erlaubt in FTP Benutzer Präfix.';

interface/web/admin/lib/lang/dk_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ $wb['webdavuser_prefix_txt'] = 'Webdav bruger prefix';
1616
$wb['ftpuser_prefix_txt'] = 'FTP bruger prefix';
1717
$wb['vhost_subdomains_txt'] = 'Opret Sub-domæne som web side';
1818
$wb['vhost_subdomains_note_txt'] = 'Du kan ikke deaktivere dette, så længe der findes vhost sub-domæner i systemet!';
19+
$wb['acme_dns_user_txt'] = 'Username for ISPConfig API (used by acme.sh):';
20+
$wb['acme_dns_password_txt'] = 'Password for ISPConfig API (used by acme.sh):';
21+
$wb['acme_dns_api_txt'] = 'API URL for ISPConfig API (used by acme.sh):';
22+
$wb['acme_dns_api_insecure_txt'] = 'Check SSL certificate for ISPConfig API (used by acme.sh):';
1923
$wb['dbname_prefix_error_regex'] = 'Char ikke tilladt i database name prefix.';
2024
$wb['dbuser_prefix_error_regex'] = 'Char ikke tilladt i database bruger prefix.';
2125
$wb['ftpuser_prefix_error_regex'] = 'Char ikke tilladt i ftp bruger prefix.';

interface/web/admin/lib/lang/el_system_config.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ $wb['dbuser_prefix_txt'] = 'Πρόθεμα Χρήστη Βάσης Δεδομέ
1010
$wb['shelluser_prefix_txt'] = 'Πρόθεμα Χρήστη Shell';
1111
$wb['webdavuser_prefix_txt'] = 'Πρόθεμα Χρήστη Webdav';
1212
$wb['ftpuser_prefix_txt'] = 'Πρόθεμα Χρήστη FTP';
13+
$wb['acme_dns_user_txt'] = 'Username for ISPConfig API (used by acme.sh):';
14+
$wb['acme_dns_password_txt'] = 'Password for ISPConfig API (used by acme.sh):';
15+
$wb['acme_dns_api_txt'] = 'API URL for ISPConfig API (used by acme.sh):';
16+
$wb['acme_dns_api_insecure_txt'] = 'Check SSL certificate for ISPConfig API (used by acme.sh):';
1317
$wb['dbname_prefix_error_regex'] = 'Δεν επιτρέπονται χαρακτήρες στο πρόθεμα του Ονόματος της Βάσης Δεδομένων.';
1418
$wb['dbuser_prefix_error_regex'] = 'Δεν επιτρέπονται χαρακτήρες στο πρόθεμα του Χρήστη της Βάσης Δεδομένων.';
1519
$wb['ftpuser_prefix_error_regex'] = 'Δεν επιτρέπονται χαρακτήρες στο πρόθεμα του Χρήστη ftp.';

0 commit comments

Comments
 (0)