{"id":22285537,"url":"https://github.com/katexochen/dumpasn1","last_synced_at":"2025-03-25T20:23:30.621Z","repository":{"id":186522941,"uuid":"670777788","full_name":"katexochen/dumpasn1","owner":"katexochen","description":"display and debug ASN.1 data [mirror]","archived":false,"fork":false,"pushed_at":"2023-10-10T06:08:53.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-30T17:53:10.934Z","etag":null,"topics":["asn1","asn1-decoder","asn1-der","mirror"],"latest_commit_sha":null,"homepage":"https://www.cs.auckland.ac.nz/~pgut001/dumpasn1.c","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/katexochen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-25T20:17:32.000Z","updated_at":"2024-09-16T13:29:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"36ab8b90-18fd-4b54-a9d8-1bdfadc02539","html_url":"https://github.com/katexochen/dumpasn1","commit_stats":null,"previous_names":["katexochen/dumpasn1"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katexochen%2Fdumpasn1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katexochen%2Fdumpasn1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katexochen%2Fdumpasn1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katexochen%2Fdumpasn1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katexochen","download_url":"https://codeload.github.com/katexochen/dumpasn1/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245536099,"owners_count":20631421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asn1","asn1-decoder","asn1-der","mirror"],"created_at":"2024-12-03T16:52:41.307Z","updated_at":"2025-03-25T20:23:30.558Z","avatar_url":"https://github.com/katexochen.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `dumpasn1` - display and debug ASN.1 data\n\n\u003e [!NOTE]\\\n\u003e Copyright Peter Gutmann (\u003cpgut001@cs.auckland.ac.nz\u003e)\n\nThis is a mirror of Peter Gutmann's `dumpasn1`, adding versioning of both code and config\nand automated updates from upstream.\n\n## About\n\n`dumpasn1` is an ASN.1 object dump program that will dump data encoded using any of the ASN.1 encoding\nrules in a variety of user-specified formats. Sample output from this program (using the default format) is:\n\n```\n 256  159: SEQUENCE {\n 259   13:   SEQUENCE {\n 261    9:     OBJECT IDENTIFIER rsaEncryption (1 2 840 113549 1 1 1)\n 272    0:     NULL\n         :     }\n 274  141:   BIT STRING, encapsulates {\n 278  137:     SEQUENCE {\n 281  129:       INTEGER\n         :         00 E5 19 BF 6D A3 56 61 2D 99 48 71 F6 67 DE B9\n[...]    :         8F\n 413    3:       INTEGER 65537\n         :       }\n         :     }\n         :   }\n```\n\n## Usage\n\n```\nDumpASN1 - ASN.1 object dump/syntax check program.\nCopyright Peter Gutmann 1997 - 2021.  Last updated 22 April 2021.\n\nUsage: dumpasn1 [-acdefghilmopqrstuvwxz] \u003cfile\u003e\n  Input options:\n       - = Take input from stdin (some display options will be disabled)\n       -q = Disable warning about stdin use affecting display options\n       -\u003cnumber\u003e = Start \u003cnumber\u003e bytes into the file\n       -- = End of arg list\n       -c\u003cfile\u003e = Read Object Identifier info from alternate config file\n            (values will override equivalents in global config file)\n\n  Output options:\n       -f\u003cfile\u003e = Dump object at offset -\u003cnumber\u003e to file (allows data to be\n            extracted from encapsulating objects)\n       -w\u003cnumber\u003e = Set width of output, default = 80 columns\n\n  Display options:\n       -a = Print all data in long data blocks, not just the first 128 bytes\n       -d = Print dots to show column alignment\n       -g = Display ASN.1 structure outline only (no primitive objects)\n       -h = Hex dump object header (tag+length) before the decoded output\n       -hh = Same as -h but display more of the object as hex data\n       -i = Use shallow indenting, for deeply-nested objects\n       -l = Long format, display extra info about Object Identifiers\n       -m\u003cnumber\u003e  = Maximum nesting level for which to display content\n       -p = Pure ASN.1 output without encoding information\n       -t = Display text values next to hex dump of data\n       -v = Verbose mode, equivalent to -ahlt\n\n  Format options:\n       -e = Don't print encapsulated data inside OCTET/BIT STRINGs\n       -r = Print bits in BIT STRING as encoded in reverse order\n       -u = Don't format UTCTime/GeneralizedTime string data\n       -x = Display size and offset in hex not decimal\n\n  Checking options:\n       -o = Don't check validity of character strings hidden in octet strings\n       -s = Syntax check only, don't dump ASN.1 structures\n       -z = Allow zero-length items\n\nWarnings generated by deprecated OIDs require the use of '-l' to be displayed.\nProgram return code is the number of errors found or EXIT_SUCCESS.\n```\n\nThe expected input format is DER (binary). If your certificate is PEM encoded (with `—–BEGIN CERTIFICATE—–`),\nyou can convert it, e.g., with openssl:\n\n```sh\nopenssl x509 -in cert.pem -inform PEM -out cert.der -outform DER\n```\n\n## Versioning\n\nThis code uses the date versioning available in the upstream code and adds Git tags and releases\naccordingly. Upstream, source and config are versioned independent of each other. Whenever one or\nthe other is updated, this repo is tagged with the date version of format that is stated in\nthe source, and a new release is added. The version from the file, which has the format `YYYYMMDD`\nis transformed into a semantic version of the form `vYYYYMMDD.%d.%d` (e.g., `v20230207.0.0`), where\nthe minor and patch versions are controlled by this repository. To further track the different versions\nof config and code, additional tags are added specific to either code or config: `YYMMDD-c` for the\nlatest code version, and `YYYYMMDD-cfg` for the latest config version.\n\n## License\n\nFor easier redistribution, the code is re-licensed with a BSD 2-Clause license, which should\nbe compatible to the original non-standard license you find in the header comment of the C source as well\nas the config. Notice that the original license is more permissive than one the present in the LICENSE file of\nthis repository, so you can always follow the original license of the source if you prefer to.\n\n## Related\n\n- [**Peter Gutmann's website**](https://www.cs.auckland.ac.nz/~pgut001/#standards) has more information on `dumpasn1`,\n     security standards and an X.509 style guide.\n- [**ASN.1 online decoder**](http://lapo.it/asn1js/) provides a nice interface to debug your ASN.1 in browser.\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://repology.org/project/dumpasn1/versions\"\u003e\n\u003cimg src=\"https://repology.org/badge/vertical-allrepos/dumpasn1.svg?columns=4\" alt=\"Packaging status\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatexochen%2Fdumpasn1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatexochen%2Fdumpasn1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatexochen%2Fdumpasn1/lists"}