DUMPASN1(1)
π DUMPASN1(1) π
okay bestie, sit down, we're doing dumpasn1 β it lives in the User Commands section of the manual, and it's about to become your new hyperfixation. β¨
πΈ NAME πΈ
dumpasn1 β the ASN.1 object dump / syntax check program. that's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
dumpasn1 [-acdefghilmoprstuvwxz] <file>
β¨ DESCRIPTION β¨
So basically? This is an ASN.1 object dump program, and what it does is dump data encoded using any of the ASN.1 encoding rules in a whole bunch of user-specified formats. like, you pick the format, it serves the data. no cap. π
DumpASN1 β ASN.1 object dump/syntax check program. Copyright Peter Gutmann 1997 - 2021. Last updated 12 February 2021. π«Ά
π₯ Input options π₯
-β take input from stdin (lowkey, some options may not work properly when you do this π)-<number>β start<number>bytes into the file--β end of arg list-c<file>β read Object Identifier info from an alternate config file
heads up bestie: values from that alternate config will override the equivalents in the global config file. π
π Output options π
-f<file>β dump the object at offset-<number>to a file (this is the one that lets you extract data from encapsulating objects π)-w<number>β set the width of output, default =80columns
π Display options π
-aβ print all data in long data blocks, not just the first128bytes-dβ print dots to show column alignment-gβ display the ASN.1 structure outline only (no primitive objects)-hβ hex dump the object header (tag+length) before the decoded output-hhβ same as-hbut displays more of the object as hex data-iβ use shallow indenting, for deeply-nested objects-lβ long format, displays extra info about Object Identifiers-m<number>β maximum nesting level for which to display content-pβ pure ASN.1 output without encoding information-tβ display text values next to the hex dump of data-vβ verbose mode, equivalent to-ahlt
π Format options π
-eβ don't print encapsulated data inside OCTET/BIT STRINGs-rβ print bits in BIT STRING as encoded in reverse order-uβ don't format UTCTime/GeneralizedTime string data-xβ display size and offset in hex, not decimal
β Checking options β
-oβ don't check the validity of character strings hidden in octet strings-sβ syntax check only, don't dump ASN.1 structures-zβ allow zero-length items
β οΈ real talk: warnings generated by deprecated OIDs require the use of-lto be displayed. and the program return code is the number of errors found, orEXIT_SUCCESS. remember it. β¨
π§ COMMENT π§
This manual page was written by Mathieu Malaterre <malat@debian.org> for the Debian GNU/Linux system, but it may be used by others. sharing is caring fr fr. π
π FILES π
$HOME/.dumpasn1.cfg, /etc/dumpasn1/dumpasn1.cfg:
This is the configuration file, and it will be searched in this order. It contains OIDs commonly used. ποΈ
π AUTHOR π
quote from Peter Gutmann:
ASN.1 object dumping code, copyright Peter Gutmann<pgut001@cs.auckland.ac.nz>, based on ASN.1 dump program by David Kemp<dpkemp@missi.ncsc.mil>, with contributions from various people including Matthew Hamrick<hamrick@rsa.com>, Bruno Couillard<bcouillard@chrysalis-its.com>, Hallvard Furuseth<h.b.furuseth@usit.uio.no>, Geoff Thorpe<geoff@raas.co.nz>, David Boyce<d.boyce@isode.com>, John Hughes<john.hughes@entegrity.com>, Life is hard, and then you die<ronald@trustpoint.com>, Hans-Olof Hermansson<hans-olof.hermansson@postnet.se>, Tor Rustad<Tor.Rustad@bbs.no>, Kjetil Barvik<kjetil.barvik@bbs.no>, James Sweeny<jsweeny@us.ibm.com>, and several other people whose names I've misplaced. π
dumpasn1 is available at https://www.cs.auckland.ac.nz/~pgut001/ π¦
π COPYRIGHT π
Copyright Peter Gutmann 1997 - 2016. Last updated 22 October 2019.
and that's the whole page, bestie β dumpasn1 version 20210212, from January 2022, the DUMPASN1(1) manual. go forth and dump some objects, you absolute icon. πβ¨ππ¦πΈ
π¦ where this page comes from
- debian bookworm: dumpasn1 20210212-3 Β· Permissive
- ubuntu jammy: dumpasn1 20210212-3 Β· Permissive
- ubuntu noble: dumpasn1 20210212-3 Β· Permissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms