--- loncom/configuration/SSL.pm 2016/07/25 19:50:16 1.1
+++ loncom/configuration/SSL.pm 2016/08/07 04:18:21 1.4
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Checksum installed LON-CAPA modules and some configuration files
#
-# $Id: SSL.pm,v 1.1 2016/07/25 19:50:16 raeburn Exp $
+# $Id: SSL.pm,v 1.4 2016/08/07 04:18:21 raeburn Exp $
#
# The LearningOnline Network with CAPA
#
@@ -35,6 +35,8 @@ use Apache::lonlocal();
use Apache::lonnet();
use Apache::loncommon();
use Apache::lonhtmlcommon();
+use DateTime;
+use DateTime::Format::x509;
use LONCAPA;
sub print_certstatus {
@@ -57,14 +59,16 @@ sub print_certstatus {
'host' => 'Connections Certificate',
'hostname' => 'Replication Certificate',
'ca' => 'LON-CAPA CA Certificate',
+ 'expired' => 'Expired',
+ 'future' => 'Future validity',
);
my @files = qw(key host hostname ca);
my @fields = qw(status cn start end alg size email);
foreach my $server (sort(keys(%{$servers}))) {
- my $hostname = &Apache::lonnet::hostname($server);
my ($result,$hashref) = &Apache::lonnet::get_servercerts_info($server,$context);
if ($result eq 'ok' && ref($hashref) eq 'HASH') {
if ($target eq 'web') {
+ my $hostname = &Apache::lonnet::hostname($server);
$message .= "