A small utility without dependencies except go. It is therfore trivial to install this by hand but job thought it would be useful to have it as a port, so here we go.
The Makefile has more handrolled things than I would like. go.port.mk is an incomprehensible mess and it made me waste more than enough time for this trivial thing. If there's a better way for anything, please let me know. It is unlikely that this will ever see official releases, so I refrained from prepending 0.0. to the date because I find this very ugly and hacky. If this leaf port needs to bump EPOCH, so be it. $ pkg_info der-ascii Information for inst:der-ascii-20230412 Comment: convert between ASN.1 encodings and text Description: DER ASCII is a small human-editable language to emit DER (Distinguished Encoding Rules) or BER (Basic Encoding Rules) encodings of ASN.1 structures and malformed variants of them. The package provides two tools, ascii2der and der2ascii, to convert DER ASCII to a byte string and vice versa. These tools may be used to create test inputs by taking an existing DER or BER structure, disassembling it with der2ascii into DER ASCII, making adjustments, and assembling back into binary with ascii2der. This avoids having to manually fix up all the length prefixes. As a bonus, it acts as a human-readable view for DER structures. Maintainer: Theo Buehler <t...@openbsd.org> WWW: https://github.com/google/der-ascii