Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 102715
Status: rejected
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: Sebastian.Rose [...] mentana.de
Cc:
AdminCc:

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



Subject: Docs for Net::DNS::RR::CERT wrong, cert() missing
Date: Thu, 12 Mar 2015 09:54:04 +0000
To: "bug-Net-DNS [...] rt.cpan.org" <bug-Net-DNS [...] rt.cpan.org>
From: Sebastian Rose <Sebastian.Rose [...] mentana.de>
Hello maintainers, First of all, thanks for the great package! Does a lot of work for me :) I found, the documentation for the class Net::DNS::RR::CERT is wrong (probably). It mentions the following methods: - format - tag - algorithm - cert - certbin Two of which are not available: - There is no method named 'cert'. The method's name is 'certificate' - There is no method named 'certbin' I could not find a method (documented or not) that gives me the PEM encoded certificate (which ought to be cert according to the docs). Mit freundlichen Grüßen, Sebastian Rose Software-Entwickler Mentana-Claimsoft GmbH EIN UNTERNEHMEN DER FP-GRUPPE Griesbergstr. 8 · 31162 Bad Salzdetfurth Trebuser Str. 47 · Haus 1 · 15517 Fürstenwalde Tel: +49 (0)5063 277440 · Fax: +49 (0)5063 2774450 E-Mail: sebastian.rose@mentana.de · De-Mail: sebastian.rose@mentana.de-mail.de Web: www.mentana-claimsoft.de · Blog: fp-francotyp.com/blog Folgen Sie uns auch auf: Service Center De-Mail: 01806/ Mentana (6368262) (0,20 € pro Anruf aus dem deutschen Festnetz, max. 0,60 € pro Anruf aus dem deutschen Mobilfunknetz) Service Center Signaturprodukte: 01806/ Signatur (74462887) (0,20 € pro Anruf aus dem deutschen Festnetz, max. 0,60 € pro Anruf aus dem deutschen Mobilfunknetz) Geschäftsführung Jürgen Vogler, Stephan Vanberg HRB: 13886 - Amtsgericht Frankfurt/Oder
Download smime.p7s
application/pkcs7-signature 5.1k

Message body not shown because it is not plain text.

From: rwfranks [...] acm.org
On Thu Mar 12 05:54:20 2015, Sebastian.Rose@mentana.de wrote: [snip] Show quoted text
> > I found, the documentation for the class Net::DNS::RR::CERT is wrong > (probably). > > It mentions the following methods: > > - format > - tag > - algorithm > - cert > - certbin > > Two of which are not available: > > - There is no method named 'cert'. The method's name is 'certificate' > - There is no method named 'certbin' >
The description you provide is inconsistent. The documentation you quote is from Net::DNS 0.69 or later. The installed code seems to be 0.68 or earlier. The maintained version is 0.83 which appears to be complete and correct. Show quoted text
> I could not find a method (documented or not) that gives me the PEM > encoded certificate (which ought to be cert according to the docs). >
$rr->cert() returns the Base64 encoded certificate. $rr->certificate() is provided for backward compatibility. $rr->certbin() provides the decoded form. The interpretation of the certificate is out of scope for Net::DNS and depends on the value of $rr->format() as listed in RFC4398. Unfortunately, RFC4398 calls this the "type" field, which conflicts with Net::DNS::RR::type.