← 返回命令列表

Linux command

asn1parse.1s 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Parse

openssl asn1parse -in [file.der]

Example

openssl asn1parse -in [file.pem] -inform PEM

Example

openssl asn1parse -in [file.der] -offset [100]

Example

openssl asn1parse -in [file.der] -dump

Example

openssl asn1parse -in [file.pem] -strparse [offset]

说明

asn1parse is an OpenSSL diagnostic utility that parses ASN.1 (Abstract Syntax Notation One) encoded data. It displays the structure of certificates, keys, and other cryptographic objects in a human-readable format. The tool is invaluable for debugging certificate issues, understanding data structures, and analyzing encoded data.

参数

-help
Print usage message.
-in _filename_
Input file, default is standard input.
-inform _DER|PEM_
Input format; the default is PEM.
-out _filename_
Output file to place the DER encoded data into.
-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
Indent the output according to the depth of the structures.
-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.
-genstr _string_
Generate encoded data based on string using ASN1_generate_nconf format.
-genconf _file_
Generate encoded data from file using ASN1_generate_nconf format.
-strictpem
Ignore any data prior to the BEGIN marker or after END marker in PEM.

FAQ

What is the asn1parse.1s command used for?

asn1parse is an OpenSSL diagnostic utility that parses ASN.1 (Abstract Syntax Notation One) encoded data. It displays the structure of certificates, keys, and other cryptographic objects in a human-readable format. The tool is invaluable for debugging certificate issues, understanding data structures, and analyzing encoded data.

How do I run a basic asn1parse.1s example?

Run `openssl asn1parse -in [file.der]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -help do in asn1parse.1s?

Print usage message.