Skip to content

Instantly share code, notes, and snippets.

@BrianAker
BrianAker / create_gtld_ca.sh
Last active September 18, 2022 05:48
This script produces a CA with a restraint that it can only create certificates under a specific domain.
#!/bin/bash
# This script produces a CA with a restraint that it can only create certificates under a specific domain.
# The last 5 lines install the CA where mkcert will make use of it as the root CA ( OSX specific at the moment )
gTLD="${gTLD:-localhost}"
declare -x HOST_COMMON_NAME
#export exampleIP=192.0.2.2
force=false
#!/usr/bin/env ANSIBLE_HOSTS="localhost," ansible-playbook
#
# Huh?
# Often I want to render a template but I don't really want to deal with all
# of ansible. So this is command line tool for generating and install a
# jinja template using ansible. No inventory file is required.
#
# Example:
# SRC=./templates/curlrc.j2 DEST=~/.curlrc ./template.yaml
#