| Server IP : 104.21.25.180 / Your IP : 104.23.197.122 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/libexec/webmin/certbot/ |
Upload File : |
#!/usr/bin/perl
require './certbot-lib.pl';
&ui_print_header(undef, $text{'certificates_title'}, "");
print $text{'certificates_desc'}.' <a href="/webmin/edit_ssl.cgi?mode=lets">Let\'s Encrypt form</a><br>';
my @cert_info = get_certbot_certs_info();
my @tds = ();
print &ui_columns_start([ 'Name','Domains','Expiry Date', 'Flags'], undef, 0, \@tds, 'Certificates');
foreach $href (@cert_info) {
my @cols;
push(@cols, '<a href="view_certificate.cgi?name='.$href->{'name'}.'">'.$href->{'name'}.'</a>');
my $dom_links = '';
for my $dom (split(',',$href->{'domains'})){
$dom_links .= '<a target="_blank" href="https://'.$dom.'/">'.$dom.'</a><br>';
}
push(@cols, $dom_links);
push(@cols, $href->{'expiry_date'}); #TODO: Put data in red if its expired!, in yellow if it expires this week
my @flags=();
if($href->{'staging'} eq 'yes'){
push(@flags,'TEST');
}
if($href->{'revoked'} eq 'yes'){
push(@flags, 'REVOKED');
}
if($href->{'valid_for'}){
push(@flags, 'VALID for '.$href->{'valid_for'});
}
push(@cols, join(',', @flags));
print &ui_columns_row(\@cols, \@tds);
}
print &ui_columns_end();
&ui_print_footer("", $text{'index_return'});