Previous: , Up: Utilities   [Contents][Index]


3.3 Invoking asn1Decoding

asn1Decoding generates an ASN.1 structure from a file with ASN.1 definitions and a binary file with a DER encoding.

Usage: asn1Decoding [OPTION] DEFINITIONS ENCODED ASN1TYPE
Decodes DER data in ENCODED file, for the ASN1TYPE element
described in ASN.1 DEFINITIONS file, and print decoded structures.

  -b, --benchmark       perform a benchmark on decoding
  -s, --strict          use strict DER decoding
  -t, --no-time-strict  use strict DER decoding but not in time fields
  -h, --help            display this help and exit
  -v, --version         output version information and exit

Report bugs to: help-libtasn1@gnu.org
GNU Libtasn1 home page: <https://www.gnu.org/software/libtasn1/>
General help using GNU software: <https://www.gnu.org/gethelp/>

For example, after generating the assign.out file from the example section of the asn1Coding command above, the following invocation will decode the DER data.

$ asn1Decoding pkix.asn assign.out PKIX1.Dss-Sig-Value