Subject: | public key exponent and modulus |
The pubkey method returns the DER-encoded public key:
http://search.cpan.org/dist/Crypt-X509/lib/Crypt/X509.pm#pubkey
I'd really appreciate it if pubkey_exponent and pubkey_modulus methods
could be added which expose the public key exponent and modulus as either
hexadecimal strings or Math::BigInt objects.
Alternatively, example code showing how these values can be extracted
from the DER-encoded public key would be good.
Right now, CGI::Auth::FOAF_SSL uses a combination of Crypt::X509 and
Crypt::OpenSSL::X509 to parse X509 keys, but it would be nice if the
dependency on Crypt::OpenSSL::X509 could be removed. Implementing this
wishlist feature would allow me to remove that dependency.