0 7ˆl–Ãa¾””ËmJq@¹q–®2ú˜´o 0a–Ãa¾””ËmJq@¹q–®2ú˜´oÁ ˆ¿Ã 0¾Á ˆ¿Ã 0¾Á ˆ¿Ã 0¾Á ˆ¿Ã 0¾Á+!ˆl–ßi~” JC]Šq@¿p!¸Ø”Å£Ä ƒy ¿_‡I|¥‰ÓMÀà ã! asn1parse

NAME

openssl-asn1parse, asn1parse - ASN.1 parsing tool

SYNOPSIS

openssl asn1parse [-help] [-inform PEM|DER] [-in filename] [-out filename] [-noout] [-offset number] [-length number] [-i] [-oid filename] [-dump] [-dlimit num] [-strparse offset] [-genstr string] [-genconf file] [-strictpem] [-item name]

DESCRIPTION

The asn1parse command is a diagnostic utility that can parse ASN.1 structures. It can also be used to extract data from ASN.1 formatted data.

OPTIONS

-help

Print out a usage message.

-inform DER|PEM

The input format. DER is binary format and PEM (the default) is base64 encoded.

-in filename

The input file, default is standard input.

-out filename

Output file to place the DER encoded data into. If this option is not present then no data will be output. This is most useful when combined with the -strparse option.

-noout

Don't output the parsed version of the input file.

-offset number

Starting offset to begin parsing, default is start of file.

-length number

Number of bytes to parse, default is until end of file.

-i

Indents the output according to the "depth" of the structures.

-oid filename

A file containing additional OBJECT IDENTIFIERs (OIDs). The format of this file is described in the NOTES section below.

-dump

Dump unknown data in hex format.

-dlimit num

Like -dump, but only the first num bytes are output.

-strparse offset

Parse the contents octets of the ASN.1 object starting at offset. This option can be used multiple times to "drill down" into a nested structure.

-genstr string, -genconf file

Generate encoded data based on string, file or both using ASN1_generate_nconf(3) format. If file only is present then the string is obtained from the default section using the name asn1. The encoded data is passed through the ASN1 parser and printed out as though it came from a file, the contents can thus be examined and written to a file using the out option.

-strictpem