No::Worries::DN(3)
β¨ NAME β¨
okay so bestie, welcome to this User Contributed Perl Documentation page for No::Worries::DN(3) β yes, that's the manual name, and we are diving in π
This module is literally No::Worries::DN, and its whole vibe is Distinguished Names handling without worries π
πΈ SYNOPSIS πΈ
Here's the little demo, copy-paste safe:
use No::Worries::DN qw(dn_parse dn_string);
$dn = dn_parse("/C=US/O=Acme Corporation/CN=John Doe");
$string = dn_string($dn, No::Worries::DN::FORMAT_JAVA);
π¦ DESCRIPTION π¦
This module eases Distinguished Names (DNs) handling by providing convenient functions to parse and convert DNs from and to different formats. Literally convenience, no cap β¨
All the functions here die() on error, so yeah, error handling is very much a thing ππ₯
π FUNCTIONS π
okay so this module provides the following functions, and none of them are exported by default β you gotta ask for them by name, bestie π«Ά
dn_parse(STRING)β parses a string containing DN information and returns an array reference. It's giving "string goes in, array ref comes out" πΈdn_string(DN, FORMAT)β converts the given parsed DN (an array reference) into a string of the given format. This is somehow the opposite ofdn_parse()π
π FORMATS π
Here are the supported formats, bestie:
No::Worries::DN::FORMAT_RFC2253β this is the format defined by RFC 2253. For instance:CN=John Doe,O=Acme Corporation,C=USπNo::Worries::DN::FORMAT_JAVAβ this is a variant of RFC 2253, with extra spaces. For instance:CN=John Doe, O=Acme Corporation, C=USβ¨No::Worries::DN::FORMAT_OPENSSLβ this is the default format used by OpenSSL. For instance:/C=US/O=Acme Corporation/CN=John Doeπ¦
π SEE ALSO π
go peep this too:
No::Worriesβ the parent module, iykyk π
π AUTHOR π
- Author:
Lionel Cons <http://cern.ch/lionel.cons> - Copyright:
Copyright (C) CERN 2012-2019
This page's footer energy is giving source/version perl v5.32.1, date 2021-10-18, and page No::Worries::DN(3) β so that's the tea, bestie, bye! π
ππ
π¦ where this page comes from
- epel 9: perl-No-Worries 1.7-1.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms