Net::DN...:SMIMEA(3)
π NAME π
Net::DNS::RR::SMIMEA β the DNS SMIMEA resource record, bestie. That's it, that's the whole vibe. It lives in the Net::DNS::RR family (User Contributed Perl Documentation, iykyk) and it's here to hold your cert association data. Slay. β¨
πΈ SYNOPSIS πΈ
use Net::DNS;
$rr = Net::DNS::RR->new('name SMIMEA usage selector matchingtype certificate');
Literally just use Net::DNS and then spawn one of these with Net::DNS::RR->new(...), passing name SMIMEA usage selector matchingtype certificate in that order. That's the whole summoning ritual. π
π¦ DESCRIPTION π¦
Okay so the SMIMEA DNS resource record (RR) is the one that associates an end entity certificate or public key with the associated email address β and when you do that, you've formed what they call a "SMIMEA certificate association". Iconic. π
The semantics of how the SMIMEA RR is interpreted are described in RFC6698, so if you want the deep lore, that's where it lives.
π₯ METHODS π₯
The available methods are those inherited from the base class, plus the type-specific methods defined in this package. Best of both worlds, fr fr.
Huge heads-up: use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour. Nobody wants that. Don't go poking around in the internals like a raccoon. π
β¨ usage β¨
$usage = $rr->usage;
$rr->usage( $usage );
An 8-bit integer value which specifies the provided association that will be used to match the certificate. Small number, big job. π«Ά
β¨ selector β¨
$selector = $rr->selector;
$rr->selector( $selector );
An 8-bit integer value which specifies which part of the certificate presented by the server will be matched against the association data. It's giving "which piece are we comparing to." π―
β¨ matchingtype β¨
$matchingtype = $rr->matchingtype;
$rr->matchingtype( $matchingtype );
An 8-bit integer value which specifies how the certificate association is presented. Short name, very specific mission. π
β¨ certificate / cert β¨
$cert = $rr->cert;
$rr->cert( $cert );
Hexadecimal representation of the certificate data. Two names β certificate and cert β same energy, same method. β¨
β¨ certbin β¨
$certbin = $rr->certbin;
$rr->certbin( $certbin );
Binary representation of the certificate data. For when hex just isn't your moment. π
β¨ babble β¨
print $rr->babble;
The babble() method returns the 'BubbleBabble' representation of the digest if the Digest::BubbleBabble package is available β otherwise an empty string is returned. Noted. π
BubbleBabble represents a message digest as a string of plausible words, to make the digest easier to verify. The "words" are not necessarily real words, but they look more like words than a string of hex characters. It's giving "english but make it off." π
The 'BubbleBabble' string is appended as a comment when the string method is called.
π COPYRIGHT π
Copyright (c)2016 Dick Franks.
All rights reserved.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
π LICENSE π
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the original copyright notices appear in all copies and that both copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
That footer paragraph is the legal version of "no refunds, no drama, use at your own risk." π Keep it intact, bestie β it's load-bearing.
π SEE ALSO π
perlNet::DNSNet::DNS::RR- RFC8162 <https://iana.org/go/rfc8162>
- RFC6698 <https://iana.org/go/rfc6698>
okay that's the whole page π«Ά this edition is from perl v5.42.0, dated 2026-09-02 β go forth and associate those certificates, bestie π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-DNS 1.570.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms