Skip to content

Instantly share code, notes, and snippets.

View sudermanjr's full-sized avatar

Andy Suderman sudermanjr

View GitHub Profile
@paxswill
paxswill / pfsense_cert_to_keystore.sh
Created September 27, 2017 17:41
Simple script to copy certificates from pfSense's certificate manager (which in my case were being updated with Let's Encrypt) to a Java keystore (in my case the one being used by Ubiquiti's Unifi Controller).
#!/bin/sh
set -eu
XMLLINT=/usr/local/bin/xmllint
BASE64_DECODE='/usr/local/bin/python2 -m base64 -d'
OPENSSL="/usr/bin/openssl"
KEYTOOL="/usr/local/bin/keytool"
PFSENSE_CONF=/cf/conf/config.xml