ASN1_PRINT(1)
π NAME π
asn1_print β dump ASN.1 DER encoded values β¨ And yes bestie, this whole page is the ASN1_PRINT(1) manual from the General Commands Manual π
πΈ SYNOPSIS πΈ
asn1_print [-i | --no-indent] [-I | --inner] [-l | --list-types]
[-A | --try-all-types] [-S | --raw-sequence]
[-n | --no-print] [-q | --quiet] [--test-encode]
[--test-copy] [-l -v | --version] [-l -h | --help]
[FILE [TypeName...]]
π¦ DESCRIPTION π¦
Okay so asn1_print dumps ASN.1 DER-encoded values, no cap π«Ά
If you give it one or more TypeName arguments, asn1_print prints the value in a JSON-like format using its knowledge of the ASN.1 modules defining those types. It stops at the first type for which it can successfully decode the value. Slay.
If TypeNames are given, they must be the names of ASN.1 types exported by an ASN.1 modules that are compiled into asn1_print. Use the --try-all-types option to attempt decoding as all ASN.1 types known to asn1_print. That option is main character energy, fr fr.
If neither any TypeName nor --try-all-types are given, then the value will be parsed and displayed using just the self-describing nature of DER. Iconic.
π Options supported: π
-i,--no-indentβ do not indent dump. Zero indentation, zero problems β¨-I,--innerβ try to parse inner structures ofOCTET STRINGand constructed values. Peek inside, bestie π-l,--list-typesβ list all types known toasn1_print. It's giving directory of types π-A,--try-all-typesβ attempt to decode the value as any of all types known toasn1_print. Throw the whole type catalog at it π₯-S,--raw-sequenceβ if a value parses as a given TypeName but any bytes are left over, try to parse those separately as well until all bytes are consumed or an error occurs. Leftover bytes said "not me" andasn1_printsaid "actually yes you" π-n,--no-printβ for the case where-Aor--try-all-typesor where a TypeName is given, do not output a JSON representation of the value, just attempt to decode it. Useful for fuzzing. Decode-only vibe check π-q,--quietβ similar to-n,--no-printbut JSON output will be formatted, just not output. As with-n,--no-print, this option requires-A -/ --try-all-typesor that a TypeName be given. Useful for fuzzing. Quiet but still formatted, the duality of woman π--test-encodeβ check that encoding produces the same value as decoding. Useful for fuzzing. Round-trip slay π--test-copyβ test copy functions. Useful for fuzzing. Copy functions getting tested, periodt π§-v,--versionβ that's the whole entry; no extra description given here β¨-h,--helpβ that's the whole entry too; no extra description given here π
Big cute sign-off: this page comes from source/version HEIMDAL, dated February 22, 2021, and it's the ASN1_PRINT(1) manual. Bye bestie π«Άπ
π¦ where this page comes from
- nixpkgs unstable: heimdal 7.8.0-unstable-2024-09-10
- Copyright (c) 2021 Kungliga Tekniska HΓΆgskolan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms