No::Worries::DN(3)

πŸ“¦
version 1.7 Β· 4 versions
, in epel 9

✨ 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 of dn_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 πŸ“


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