Skip to content

Instantly share code, notes, and snippets.

View ddwashburn's full-sized avatar

Daniel Washburn ddwashburn

View GitHub Profile
@ddwashburn
ddwashburn / override-hook
Created June 9, 2019 14:51
Dehydrated hook to deploy certificates to Ubiquiti UniFi controllers
function deploy_cert {
local domain="${1}" keyfile="${2}" certfile="${3}" fullchainfile="${4}" chainfile="${5}"
local unifi_alias="unifi" unifi_keystorepass="aircontrolenterprise"
local unifi_keystore="/usr/lib/unifi/data/keystore"
local temp_p12="$(mktemp dehydrated-XXXXXXXX)"
echo "Deploying certificate"
# Create a temporary PKCS12 to be imported into the keystore
/usr/bin/openssl pkcs12 -export \
-in ${fullchainfile} \

Keybase proof

I hereby claim:

  • I am ddwashburn on github.
  • I am muchomas (https://keybase.io/muchomas) on keybase.
  • I have a public key ASD-E6xnZS9syMJVkViZ1KSMrVisCprAiSsYA1A1I8ztVwo

To claim this, I am signing this object:

# Configure interface eth1 and then request a prefix delegation
# and assign it to interface eth0
interface eth1 {
send rapid-commit;
send ia-pd 0;
send ia-na 1;
request domain-name-servers;
script "/etc/wide-dhcpv6/dhcp6c-script";
};
checking host system type... i386-apple-darwin13.1.0
checking for gcc... gcc-4.2
checking whether the C compiler (gcc-4.2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
HOMEBREW_VERSION: 0.9.5
HEAD: 01167a7360c0f846926ee7845b00577206c373e5
CPU: 8-core 64-bit nehalem
OS X: 10.9.2-x86_64
CLT: 5.1.0.0.1.1393561416