Skip Menu |

This queue is for tickets about the Crypt-X509 CPAN distribution.

Report information
The Basics
Id: 61457
Status: resolved
Priority: 0/
Queue: Crypt-X509

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.40
Fixed in: (no value)



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.
Subject: [rt.cpan.org #61457] patch supplied
Date: Wed, 29 Dec 2010 18:24:19 -0500
To: bug-Crypt-X509 [...] rt.cpan.org
From: Daniel Kahn Gillmor <dkg [...] fifthhorseman.net>
attached is a patch for CPAN's RT #61457, including a test case. It's also available from the updates branch of my git repo: git://lair.fifthhorseman.net/~dkg/libcrypt-x509-perl I implemented it as a pubkey_components function, which happens to only deal with RSA keys right now. Further implementations (e.g. for DSA or elliptic curve) would be a great addition, but i think this is useful enough to start with. --dkg

Message body is not shown because sender requested not to inline it.

Download signature.asc
application/pgp-signature 900b

Message body not shown because it is not plain text.

ok, crypt::x509 version 0.5 fixes this and is on CPAN (please wait for distribution) Yours, Alexander