Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: tvidas [...] cmu.edu
Cc:
AdminCc:

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



Subject: missing OID values in hash oid2enchash
Download (untitled) / with headers
text/plain 2.9k
here is the required version information (though i don't think it's really pertinent): Perl: This is perl 5, version 12, subversion 4 (v5.12.4) built for x86_64-linux-thread-multi OS: Linux hostname 2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov 23 13:07:52 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Module: Crypt-X509-0.51 the %oid2enchash is pretty sparse, it would be very useful to include more oids. Specifically i see the DSAwithSHA1 algorithm type used frequently. Here is a patch to add a bunch $> diff -Naur /usr/local/share/perl5/Crypt/X509.pm.old /usr/local/share/perl5/Crypt/X509.pm --- /usr/local/share/perl5/Crypt/X509.pm.old 2012-02-11 15:55:07.456820662 -0500 +++ /usr/local/share/perl5/Crypt/X509.pm 2012-02-11 16:39:07.220769768 -0500 @@ -22,7 +22,33 @@ '1.2.840.113549.1.1.11' => { 'enc' => 'RSA', 'hash' => 'SHA256' }, '1.2.840.113549.1.1.12' => { 'enc' => 'RSA', 'hash' => 'SHA384' }, '1.2.840.113549.1.1.13' => { 'enc' => 'RSA', 'hash' => 'SHA512' }, - '1.2.840.113549.1.1.14' => { 'enc' => 'RSA', 'hash' => 'SHA224' } + '1.2.840.113549.1.1.14' => { 'enc' => 'RSA', 'hash' => 'SHA224' }, + + '1.2.840.10040.4.1' => { 'enc' => 'DSA' }, + '1.2.840.10040.4.3' => { 'enc' => 'DSA', 'hash' => 'SHA1' }, + + '1.2.840.10045.2.1' => { 'enc' => 'ECC'}, + '1.2.840.10045.4.1' => { 'enc' => 'ECDSA' }, + '1.2.840.10045.4.3' => { 'enc' => 'ECDSA', 'hash' => 'SHA1' }, + '1.2.840.10045.4.3.1' => { 'enc' => 'ECDSA', 'hash' => 'SHA224' }, + '1.2.840.10045.4.3.2' => { 'enc' => 'ECDSA', 'hash' => 'SHA256' }, + '1.2.840.10045.4.3.3' => { 'enc' => 'ECDSA', 'hash' => 'SHA384' }, + '1.2.840.10045.4.3.4' => { 'enc' => 'ECDSA', 'hash' => 'SHA512' }, + + '1.2.840.10046.2.1' => { 'enc' => 'DH' }, + + '1.3.14.3.2.2' => { 'enc' => 'RSA', 'hash' => 'MD4' }, + '1.3.14.3.2.4' => { 'enc' => 'RSA', 'hash' => 'MD4' }, + '1.3.14.3.2.3' => { 'enc' => 'RSA', 'hash' => 'MD5' }, + '1.3.14.7.2.3.1' => { 'enc' => 'RSA', 'hash' => 'MD2' }, + '1.3.14.3.2.12' => { 'enc' => 'DSA'}, + '1.3.14.3.2.13' => { 'enc' => 'DSA', 'hash' => 'SHA1' }, + '1.3.14.3.2.15' => { 'enc' => 'RSA', 'hash' => 'SHA1' }, + '1.3.14.3.2.26' => { 'enc' => 'RSA'}, + '1.3.14.3.2.27' => { 'enc' => 'DSA', 'hash' => 'SHA1' }, + '1.3.14.3.2.29' => { 'enc' => 'RSA', 'hash' => 'SHA1' }, + + '1.3.36.3.3.1.2' => { 'enc' => 'RSA', 'hash' => 'RIPMD160' } ); my %oid2attr = ( "2.5.4.3" => "CN", sources: http://www.rsa.com/products/bsafe/documentation/sslc251html/group__AD__C OMMON__OIDS.html http://publib.boulder.ibm.com/infocenter/zos/v1r13/index.jsp? topic=%2Fcom.ibm.zos.r13.gska100%2Fsssl2oids.htm http://msdn.microsoft.com/en-us/library/ff635603(v=prot.10).aspx http://msdn.microsoft.com/en-us/library/aa923698.aspx
Subject: X509.pm.patch
Download X509.pm.patch
text/x-diff 1.9k
--- /usr/local/share/perl5/Crypt/X509.pm.old 2012-02-11 15:55:07.456820662 -0500 +++ /usr/local/share/perl5/Crypt/X509.pm 2012-02-11 16:39:07.220769768 -0500 @@ -22,7 +22,33 @@ '1.2.840.113549.1.1.11' => { 'enc' => 'RSA', 'hash' => 'SHA256' }, '1.2.840.113549.1.1.12' => { 'enc' => 'RSA', 'hash' => 'SHA384' }, '1.2.840.113549.1.1.13' => { 'enc' => 'RSA', 'hash' => 'SHA512' }, - '1.2.840.113549.1.1.14' => { 'enc' => 'RSA', 'hash' => 'SHA224' } + '1.2.840.113549.1.1.14' => { 'enc' => 'RSA', 'hash' => 'SHA224' }, + + '1.2.840.10040.4.1' => { 'enc' => 'DSA' }, + '1.2.840.10040.4.3' => { 'enc' => 'DSA', 'hash' => 'SHA1' }, + + '1.2.840.10045.2.1' => { 'enc' => 'ECC'}, + '1.2.840.10045.4.1' => { 'enc' => 'ECDSA' }, + '1.2.840.10045.4.3' => { 'enc' => 'ECDSA', 'hash' => 'SHA1' }, + '1.2.840.10045.4.3.1' => { 'enc' => 'ECDSA', 'hash' => 'SHA224' }, + '1.2.840.10045.4.3.2' => { 'enc' => 'ECDSA', 'hash' => 'SHA256' }, + '1.2.840.10045.4.3.3' => { 'enc' => 'ECDSA', 'hash' => 'SHA384' }, + '1.2.840.10045.4.3.4' => { 'enc' => 'ECDSA', 'hash' => 'SHA512' }, + + '1.2.840.10046.2.1' => { 'enc' => 'DH' }, + + '1.3.14.3.2.2' => { 'enc' => 'RSA', 'hash' => 'MD4' }, + '1.3.14.3.2.4' => { 'enc' => 'RSA', 'hash' => 'MD4' }, + '1.3.14.3.2.3' => { 'enc' => 'RSA', 'hash' => 'MD5' }, + '1.3.14.7.2.3.1' => { 'enc' => 'RSA', 'hash' => 'MD2' }, + '1.3.14.3.2.12' => { 'enc' => 'DSA'}, + '1.3.14.3.2.13' => { 'enc' => 'DSA', 'hash' => 'SHA1' }, + '1.3.14.3.2.15' => { 'enc' => 'RSA', 'hash' => 'SHA1' }, + '1.3.14.3.2.26' => { 'enc' => 'RSA'}, + '1.3.14.3.2.27' => { 'enc' => 'DSA', 'hash' => 'SHA1' }, + '1.3.14.3.2.29' => { 'enc' => 'RSA', 'hash' => 'SHA1' }, + + '1.3.36.3.3.1.2' => { 'enc' => 'RSA', 'hash' => 'RIPMD160' } ); my %oid2attr = ( "2.5.4.3" => "CN",


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.