Lines Matching +full:input +full:- +full:depth
18 .\" Set up some character translations and predefined strings. \*(-- will
24 .tr \(*W-
27 . ds -- \(*W-
29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
37 . ds -- \|\(em\|
71 .\" Fear. Run. Save yourself. No user-serviceable parts.
81 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
98 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
99 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
100 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
101 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
102 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
104 . \" troff and (daisy-wheel) nroff accents
123 . ds d- d\h'-1'\(ga
124 . ds D- D\h'-1'\(hy
133 .IX Title "OPENSSL-ASN1PARSE 1ossl"
134 .TH OPENSSL-ASN1PARSE 1ossl "2023-09-22" "3.0.11" "OpenSSL"
140 openssl\-asn1parse \- ASN.1 parsing command
144 [\fB\-help\fR]
145 [\fB\-inform\fR \fB\s-1DER\s0\fR|\fB\s-1PEM\s0\fR]
146 [\fB\-in\fR \fIfilename\fR]
147 [\fB\-out\fR \fIfilename\fR]
148 [\fB\-noout\fR]
149 [\fB\-offset\fR \fInumber\fR]
150 [\fB\-length\fR \fInumber\fR]
151 [\fB\-i\fR]
152 [\fB\-oid\fR \fIfilename\fR]
153 [\fB\-dump\fR]
154 [\fB\-dlimit\fR \fInum\fR]
155 [\fB\-strparse\fR \fIoffset\fR]
156 [\fB\-genstr\fR \fIstring\fR]
157 [\fB\-genconf\fR \fIfile\fR]
158 [\fB\-strictpem\fR]
159 [\fB\-item\fR \fIname\fR]
162 This command is a diagnostic utility that can parse \s-1ASN.1\s0 structures.
163 It can also be used to extract data from \s-1ASN.1\s0 formatted data.
166 .IP "\fB\-help\fR" 4
167 .IX Item "-help"
169 .IP "\fB\-inform\fR \fB\s-1DER\s0\fR|\fB\s-1PEM\s0\fR" 4
170 .IX Item "-inform DER|PEM"
171 The input format; the default is \fB\s-1PEM\s0\fR.
172 See \fBopenssl\-format\-options\fR\|(1) for details.
173 .IP "\fB\-in\fR \fIfilename\fR" 4
174 .IX Item "-in filename"
175 The input file, default is standard input.
176 .IP "\fB\-out\fR \fIfilename\fR" 4
177 .IX Item "-out filename"
178 Output file to place the \s-1DER\s0 encoded data into. If this
180 combined with the \fB\-strparse\fR option.
181 .IP "\fB\-noout\fR" 4
182 .IX Item "-noout"
183 Don't output the parsed version of the input file.
184 .IP "\fB\-offset\fR \fInumber\fR" 4
185 .IX Item "-offset number"
187 .IP "\fB\-length\fR \fInumber\fR" 4
188 .IX Item "-length number"
190 .IP "\fB\-i\fR" 4
191 .IX Item "-i"
192 Indents the output according to the \*(L"depth\*(R" of the structures.
193 .IP "\fB\-oid\fR \fIfilename\fR" 4
194 .IX Item "-oid filename"
195 A file containing additional \s-1OBJECT\s0 IDENTIFIERs (OIDs). The format of this
196 file is described in the \s-1NOTES\s0 section below.
197 .IP "\fB\-dump\fR" 4
198 .IX Item "-dump"
200 .IP "\fB\-dlimit\fR \fInum\fR" 4
201 .IX Item "-dlimit num"
202 Like \fB\-dump\fR, but only the first \fBnum\fR bytes are output.
203 .IP "\fB\-strparse\fR \fIoffset\fR" 4
204 .IX Item "-strparse offset"
205 Parse the contents octets of the \s-1ASN.1\s0 object starting at \fBoffset\fR. This
207 .IP "\fB\-genstr\fR \fIstring\fR, \fB\-genconf\fR \fIfile\fR" 4
208 .IX Item "-genstr string, -genconf file"
212 \&\fBasn1\fR. The encoded data is passed through the \s-1ASN1\s0 parser and printed out as
214 file using the \fB\-out\fR option.
215 .IP "\fB\-strictpem\fR" 4
216 .IX Item "-strictpem"
217 If this option is used then \fB\-inform\fR will be ignored. Without this option any
218 data in a \s-1PEM\s0 format input file will be treated as being base64 encoded and
219 processed whether it has the normal \s-1PEM BEGIN\s0 and \s-1END\s0 markers or not. This
220 option will ignore any data prior to the start of the \s-1BEGIN\s0 marker, or after an
221 \&\s-1END\s0 marker in a \s-1PEM\s0 file.
222 .IP "\fB\-item\fR \fIname\fR" 4
223 .IX Item "-item name"
224 Attempt to decode and print the data as an \fB\s-1ASN1_ITEM\s0\fR \fIname\fR. This can be
225 used to print out the fields of any supported \s-1ASN.1\s0 structure if the type is
252 This example is part of a self-signed certificate. Each line starts with the
253 offset in decimal. \f(CW\*(C`d=XX\*(C'\fR specifies the current depth. The depth is increased
254 within the scope of any \s-1SET\s0 or \s-1SEQUENCE.\s0 \f(CW\*(C`hl=XX\*(C'\fR gives the header len…
258 The \fB\-i\fR option can be used to make the output more readable.
260 Some knowledge of the \s-1ASN.1\s0 structure is needed to interpret the output.
262 In this example the \s-1BIT STRING\s0 at offset 229 is the certificate public key.
264 be examined using the option \f(CW\*(C`\-strparse 229\*(C'\fR to yield:
273 If an \s-1OID\s0 is not part of OpenSSL's internal table it will be represented in
274 numerical form (for example 1.2.3.4). The file passed to the \fB\-oid\fR option
276 the first column is the \s-1OID\s0 in numerical format and should be followed by white
283 For any \s-1OID\s0 with an associated short and long name, this command will display
290 \& openssl asn1parse \-in file.pem
293 Parse a \s-1DER\s0 file:
296 \& openssl asn1parse \-inform DER \-in file.der
302 \& openssl asn1parse \-genstr \*(AqUTF8:Hello World\*(Aq
308 \& openssl asn1parse \-genstr \*(AqUTF8:Hello World\*(Aq \-noout \-out utf8.der
314 \& openssl asn1parse \-genconf asn1.cnf \-noout \-out asn1.der
330 \&\s-1ASN.1\s0 types is not well handled (if at all).
337 Copyright 2000\-2020 The OpenSSL Project Authors. All Rights Reserved.
341 in the file \s-1LICENSE\s0 in the source distribution or at