kgoess has asked for the wisdom of the Perl Monks concerning the following question:
Ok, then what? I'm not seeing an obvious method like $root_key->verify_certificate($other_x509) but not seeing one anywhere. Is Crypt::OpenSSL::VerifyX509 the only/best answer? That module fails unit tests on various platforms, but I'll continue in that vein if it's the way to go. But I feel like I must be missing something since it's such a common task.$root_x509 = Crypt::OpenSSL::X509->new_from_string( $root_key_data, FORMAT_ASN1 ); $root_key = Crypt::OpenSSL::RSA->new_public_key( $x509->pubkey() ); $other_x509 = Crypt::OpenSSL::X509->new_from_string( $other_key_data, FORMAT_ASN1 ); $other_key = Crypt::OpenSSL::RSA->new_public_key( $x509->pubkey() );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to validate signature of a RSA/x509 cert in Perl
by beech (Parson) on Mar 27, 2018 at 21:26 UTC | |
by Anonymous Monk on Mar 28, 2018 at 19:03 UTC | |
|
Re: How to validate signature of a RSA/x509 cert in Perl
by kgoess (Beadle) on Mar 29, 2018 at 18:37 UTC |