Subject: | Support for loading a cacert form a Crypt::OpenSSL::X509->new_from_string() |
The need to load the cacert from a file only limits its use cases. I needed to support a case were the cacert was not a file on the server but instead was a string:
I modified the code to provide a new method which accepts a cacert in Crypt::OpenSSL::X509->new_from_string() as a parameter.
New method:
Crypt::OpenSSL::VerifyX509->new_from_x509( Crypt::OpenSSL::X509 )
The code is at:
https://github.com/timlegge/perl-Crypt-OpenSSL-VerifyX509
and includes the patch for compiling with openssl 1.1.0
Hope its useful to someone.
Tim