Skip to content

Instantly share code, notes, and snippets.

@corny
corny / decode-openssh-cert.py
Last active October 13, 2023 20:08
OpenSSH certificate decoder in Python
#!/usr/bin/env python2
#
# OpenSSH certificate decoder in Python
#
# References:
# - https://tools.ietf.org/html/rfc4251.html#section-5
# - http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.certkeys?annotate=HEAD
#
# Copyright (c) 2016 Julian Kornberger <jk+github@digineo.de>
#