Skip Menu |

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

Report information
The Basics
Id: 73450
Status: new
Priority: 0/
Queue: Crypt-X509

Owner: Nobody in particular
Requestors: cpan452 [...]

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

Subject: pubkey method needs better documentation
Download (untitled) / with headers
text/plain 611b
The pubkey method does not return the public key, rather, it returns a BIT STRING that needs to be ASN-decoded in order to access the actual public key. This results in the pubkey_size method also being incorrect (it simply returns the length of this BIT STRING). Depending on the public-key algorithm (RSA, DSA, etc.) the decoded public-key structure will be different. The decoding for RSA looks like this: RSAPublicKey ::= SEQUENCE { modulus INTEGER, -- n publicExponent INTEGER -- e -- } The decoding for DSA looks like this: DSAPublicKey ::= INTEGER -- public key, Y

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to