PHP 8.2.30
Preview: X509.pm Size: 553 B
/proc/thread-self/root/proc/self/root/proc/thread-self/root/usr/local/lib64/perl5/Crypt/SSLeay/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;

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
67 B lr--r--r-- 2012-07-30 11:35:34
Edit Download
66 B lr--r--r-- 2012-07-30 11:35:34
Edit Download
66 B lr--r--r-- 2012-07-30 11:35:34
Edit Download
903 B lr--r--r-- 2012-07-30 11:35:34
Edit Download
2.27 KB lr--r--r-- 2014-04-22 14:30:40
Edit Download
553 B lr--r--r-- 2012-07-30 11:35:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).