This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |