OLD | NEW |
1 =pod | 1 =pod |
2 | 2 |
3 =head1 NAME | 3 =head1 NAME |
4 | 4 |
5 asn1parse - ASN.1 parsing tool | 5 asn1parse - ASN.1 parsing tool |
6 | 6 |
7 =head1 SYNOPSIS | 7 =head1 SYNOPSIS |
8 | 8 |
9 B<openssl> B<asn1parse> | 9 B<openssl> B<asn1parse> |
10 [B<-inform PEM|DER>] | 10 [B<-inform PEM|DER>] |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 file is described in the NOTES section below. | 65 file is described in the NOTES section below. |
66 | 66 |
67 =item B<-strparse offset> | 67 =item B<-strparse offset> |
68 | 68 |
69 parse the contents octets of the ASN.1 object starting at B<offset>. This | 69 parse the contents octets of the ASN.1 object starting at B<offset>. This |
70 option can be used multiple times to "drill down" into a nested structure. | 70 option can be used multiple times to "drill down" into a nested structure. |
71 | 71 |
72 =item B<-genstr string>, B<-genconf file> | 72 =item B<-genstr string>, B<-genconf file> |
73 | 73 |
74 generate encoded data based on B<string>, B<file> or both using | 74 generate encoded data based on B<string>, B<file> or both using |
75 ASN1_generate_nconf() format. If B<file> only is present then the string | 75 L<ASN1_generate_nconf(3)|ASN1_generate_nconf(3)> format. If B<file> only is |
76 is obtained from the default section using the name B<asn1>. The encoded | 76 present then the string is obtained from the default section using the name |
77 data is passed through the ASN1 parser and printed out as though it came | 77 B<asn1>. The encoded data is passed through the ASN1 parser and printed out as |
78 from a file, the contents can thus be examined and written to a file | 78 though it came from a file, the contents can thus be examined and written to a |
79 using the B<out> option. | 79 file using the B<out> option. |
80 | 80 |
81 =back | 81 =back |
82 | 82 |
83 =head2 OUTPUT | 83 =head2 OUTPUT |
84 | 84 |
85 The output will typically contain lines like this: | 85 The output will typically contain lines like this: |
86 | 86 |
87 0:d=0 hl=4 l= 681 cons: SEQUENCE | 87 0:d=0 hl=4 l= 681 cons: SEQUENCE |
88 | 88 |
89 ..... | 89 ..... |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 field1=BOOL:TRUE | 162 field1=BOOL:TRUE |
163 field2=EXP:0, UTF8:some random string | 163 field2=EXP:0, UTF8:some random string |
164 | 164 |
165 | 165 |
166 =head1 BUGS | 166 =head1 BUGS |
167 | 167 |
168 There should be options to change the format of output lines. The output of some | 168 There should be options to change the format of output lines. The output of some |
169 ASN.1 types is not well handled (if at all). | 169 ASN.1 types is not well handled (if at all). |
170 | 170 |
| 171 =head1 SEE ALSO |
| 172 |
| 173 L<ASN1_generate_nconf(3)|ASN1_generate_nconf(3)> |
| 174 |
171 =cut | 175 =cut |
OLD | NEW |