Skip to content

Instantly share code, notes, and snippets.

@ahuemmer
ahuemmer / wsl_ansible_preparations.md
Last active June 27, 2020 14:35
Ansible preparations for WSL

wsl_ansible_preparations.sh

Purpose

I like to use WSL to execute Ansible scripts on remote hosts. The benefits, IMHO, are that you can develop them on your usual Windows system and there's no need for a special VM, network mount or something else to be able to run them on a target system. As I'm a lazy person 😉, I don't want to enter my Ansible vault encryption key and my ssh key every time I try executing an ansible playbook (there's much of development and testing going on here). Not only lazy, but also a little paranoid, still I don't want to have my plain text passwords stored permanently in my file system. Especially regarding SSH keys used with ssh-agent, WSL will put some obstacles in your way you wouldn't have to face on a "real" Linux system.

This script will therefore benefit my lazyness and paranoia and also overcome the hinderance imposed by WSL. 😃

@ahuemmer
ahuemmer / ca_experiments.sh
Last active April 20, 2021 14:30
Experimenting with CAs, revocation and CRLs.
#!/bin/bash
#set -e
#Directories:
ROOT_CA_DIRECTORY=/etc/ssl/testCA
INTERMEDIATE_CA1_DIRECTORY=/etc/ssl/intermediateTestCA1
INTERMEDIATE_CA2_DIRECTORY=/etc/ssl/intermediateTestCA2
INTERMEDIATE_CA3_DIRECTORY=/etc/ssl/intermediateTestCA3
CRL_SERVER_DIRECTORY=/var/www/localhost/pki
DEFAULT_CERTS_DIRECTORY=certs