GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
No::Worries::DN(3) User Contributed Perl Documentation No::Worries::DN(3)

No::Worries::DN - Distinguished Names handling without worries

  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);

This module eases Distinguished Names (DNs) handling by providing convenient functions to parse and convert DNs from and to different formats. All the functions die() on error.

This module provides the following functions (none of them being exported by default):
dn_parse(STRING)
parse a string containing DN information and return an array reference
dn_string(DN, FORMAT)
convert the given parsed DN (an array reference) into a string of the given format, this is somehow the opposite of dn_parse()

Here are the supported formats:
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"

No::Worries.

Lionel Cons <http://cern.ch/lionel.cons>

Copyright (C) CERN 2012-2019

2021-10-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.