Skip to content

Instantly share code, notes, and snippets.

View chrizk's full-sized avatar

Christian Kemper chrizk

  • Bermuda Digital Studio
  • Dortmund, Germay
View GitHub Profile
@chrizk
chrizk / createBasicAuthentication.md
Last active July 13, 2018 11:55
Create entry for basic authentication
htpasswd -nb <username> <password>

or

echo <username>:$(openssl passwd -apr1 <password>)
@chrizk
chrizk / extractFromPFX.sh
Created July 13, 2018 11:37
Extract certificate and private key from pfx
#!/bin/sh
if [ -z "$1" ]
then
echo "Extract certificate and private key from pfx file for configuring TLS endpoints"
echo "Please provide pfx file as first argument"
exit 1
fi
DOMAIN=${1%.*}