| Server IP : 45.162.171.154 / Your IP : 216.73.216.5 Web Server : Apache System : Linux vxct2015.avnam.net 5.4.106-1-pve #1 SMP PVE 5.4.106-1 (Fri, 19 Mar 2021 11:08:47 +0100) x86_64 User : lpg.com.ar ( 1041) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/bind8/ |
Upload File : |
#!/usr/bin/perl
# Show all registered TLS keys
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
our (%access, %text);
require './bind8-lib.pl'; ## no critic
$access{'defaults'} || &error($text{'tls_ecannot'});
&supports_tls() || &error($text{'tls_esupport'});
my $conf = &get_config();
&ui_print_header(undef, $text{'tls_title'}, "");
print $text{'tls_desc'},"<p>\n";
# Show a table of TLS keys
my @tls = &find("tls", $conf);
my @links = ( &ui_link("edit_tls.cgi?new=1", $text{'tls_add'}) );
if (@tls) {
print &ui_links_row(\@links);
print &ui_columns_start([ $text{'tls_name'},
$text{'tls_key'},
$text{'tls_cert'} ], 100);
foreach my $tls (@tls) {
my $mems = $tls->{'members'};
print &ui_columns_row([
&ui_link("edit_tls.cgi?name=".
&urlize($tls->{'values'}->[0]),
$tls->{'values'}->[0]),
&html_escape(&find_value("key-file", $mems)),
&html_escape(&find_value("cert-file", $mems)),
]);
}
print &ui_columns_end();
}
else {
print &ui_alert_box($text{'tls_none'}, 'info', undef, undef, "");
}
print &ui_links_row(\@links);
&ui_print_footer("", $text{'index_return'});