X7ROOT File Manager
Current Path:
/lib64/perl5/vendor_perl/Crypt/SSLeay
lib64
/
perl5
/
vendor_perl
/
Crypt
/
SSLeay
/
📁
..
📄
CTX.pm
(66 B)
📄
Conn.pm
(67 B)
📄
Err.pm
(66 B)
📄
MainContext.pm
(903 B)
📄
Version.pm
(2.27 KB)
📄
X509.pm
(553 B)
Editing: X509.pm
package Crypt::SSLeay::X509; use strict; sub not_before { my $cert = shift; not_string2time($cert->get_notBeforeString); } sub not_after { my $cert = shift; not_string2time($cert->get_notAfterString); } sub not_string2time { my $string = shift; # $string has the form 021019235959Z my($year, $month, $day, $hour, $minute, $second, $GMT)= $string=~m/(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(Z)?/; $year += 2000; my $time="$year-$month-$day $hour:$minute:$second"; $time .= " GMT" if $GMT; $time; } 1;
Upload File
Create Folder