diff options
author | jake <jake@jakes-mail.top> | 2022-02-01 17:18:07 -0500 |
---|---|---|
committer | jake <jake@jakes-mail.top> | 2022-02-01 17:18:07 -0500 |
commit | 088ac46d50408ab1ce7e584d438828c2603f910a (patch) | |
tree | 4d05a8d32eb810efe770d79b0d798a5f3eb6d14f | |
parent | d52c3560f6707e37804c9f52ebb3269f7daa75d1 (diff) |
peer cert expired done correctly now
-rwxr-xr-x | gmi.pl | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -25,15 +25,15 @@ use Term::ANSIColor; # Core use Path::Naive qw(normalize_path); # CPAN use Text::ParseWords; # Core use Term::ReadLine; # CPAN -use Smart::Comments; # CPAN +#use Smart::Comments; # CPAN use URI::Encode qw(uri_encode); # CPAN use IO::Socket::SSL::Utils; # CPAN use File::Slurper qw(read_dir read_text); # CPAN -use Data::Dumper; +#use Data::Dumper; # Core use File::BaseDir qw(xdg_config_home xdg_data_home xdg_cache_home); # CPAN use TOML qw(from_toml to_toml); # CPAN -# sudo cpanm IO::Socket::SSL URL::XS IO::Pager Text::Wraper Term::ReadKey Path::Naive Text::ParseWords Term::ReadLine Smart::Comments URI::Encode IO::Socket::SSL::Utils File::Slurper File::BaseDir +# sudo cpanm IO::Socket::SSL URL::XS IO::Pager Text::Wraper Term::ReadKey Path::Naive Text::ParseWords Term::ReadLine Smart::Comments URI::Encode IO::Socket::SSL::Utils File::Slurper File::BaseDir TOML my %config = ( 'use_pager' => 1, @@ -380,7 +380,7 @@ sub peer_cert { } # check expiratory - if ($peer_not_before < $peer_not_after) { + if ($peer_not_before < time() and time() < $peer_not_after) { ### not expired ; } |