pki --dn - Extract the subject DN of an X.509 certificate
Contents
Description
This sub-command of pki(1) extracts the ASN.1-encoded subject DistinguishedName (DN) of an X.509
certificate and exports it in different formats. This may be useful when strongSwan's identity parser is
unable to produce the correct binary encoding from a string.
Name
pki --dn - Extract the subject DN of an X.509 certificate
Options
-h,--help
Print usage information with a summary of the available options.
-v,--debuglevel
Set debug level, default: 1.
-+,--optionsfile
Read command line options from file.
-i,--infile
Input file. If not given the input is read from STDIN.
-t,--formatformat
Output format. One of config (strongSwan configuration compatible), hex (hexadecimal encoding, no
prefix), base64 (Base64 encoding, no prefix), bin (raw binary data), defaults to config.
See Also
pki(1) 5.9.13 2015-08-06 PKI--DN(1)
Synopsis
pki--dn [--infile] [--formatformat] [--debuglevel]
pki--dn--optionsfilepki--dn-h | --help