Skip to content

Instantly share code, notes, and snippets.

View phoepsilonix's full-sized avatar

Masato TOYOSHIMA phoepsilonix

  • Osaka, Japan
View GitHub Profile
#!/usr/bin/env bash
# Modified to run both checks using xxd or od as fallback
# script source: https://gist.github.com/darkerego/b8fe6b2ebf2949b5dbfa1593204ae659
# script source: https://gist.github.com/amaddio/d95391c48562f6f40235ab5e839bc1ee
set -eu
PATH+=":/usr/sbin"
# Find path to liblzma used by sshd
set +e
#!/bin/sh
if test $# -lt 2; then
echo "Usage: $0 <common name> <output> [ca options ...]" >&2
exit 1
fi
cn=$1
out=$2
shift 2