blob: ce1210fdbe34bb5d51402a9b71ec140566248d4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
.TH "PKI \-\-DN" 1 "2015-08-06" "@PACKAGE_VERSION@" "strongSwan"
.
.SH "NAME"
.
pki \-\-dn \- Extract the subject DN of an X.509 certificate
.
.SH "SYNOPSIS"
.
.SY pki\ \-\-dn
.OP \-\-in file
.OP \-\-format format
.OP \-\-debug level
.YS
.
.SY pki\ \-\-dn
.BI \-\-options\~ file
.YS
.
.SY "pki \-\-dn"
.B \-h
|
.B \-\-help
.YS
.
.SH "DESCRIPTION"
.
This sub-command of
.BR 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.
.
.SH "OPTIONS"
.
.TP
.B "\-h, \-\-help"
Print usage information with a summary of the available options.
.TP
.BI "\-v, \-\-debug " level
Set debug level, default: 1.
.TP
.BI "\-+, \-\-options " file
Read command line options from \fIfile\fR.
.TP
.BI "\-i, \-\-in " file
Input file. If not given the input is read from \fISTDIN\fR.
.TP
.BI "\-t, \-\-format " format
Output format. One of \fIconfig\fR (strongSwan configuration compatible),
\fIhex\fR (hexadecimal encoding, no prefix), \fIbase64\fR (Base64 encoding,
no prefix), \fIbin\fR (raw binary data), defaults to \fIconfig\fR.
.
.SH "SEE ALSO"
.
.BR pki (1)
|