VaKeR CYBER ARMY
Logo of a company Server : Apache
System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User : vapecompany ( 2719)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /lib64/perl5/vendor_perl/Crypt/SSLeay/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/perl5/vendor_perl/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;

VaKeR 2022