dsully/perl-crypt-openssl-x509 — pull request #19 by amannb (2012-11-28 06:01:16+00:00)
Title: Add accessor key_alg_name

The accessor simply returns the algorithm of the public key (usually rsaEncryption, dsaEncryption or id-ecPublicKey). This makes it easier to execute key-type-specific functionality.

The key type is also present in the sig_alg_name field, however it is difficult to parse from there because naming is quite irregular.