- Obtain cert (however you like). Rest of this assumes you have a .p12 with the cert, key, and appropriate CA certs.
- Extract the constituent parts of the p12:
a.
openssl pkcs12 -in path_to_your_p12_file -nocerts -out privatekey.pem
b.openssl pkcs12 -in path_to_your_p12_file -clcerts -nokeys -out cert.pem
c.openssl pkcs12 -in path_to_your_p12_file -cacerts -nokeys -out cacerts.pem
- Unifi keystore is located in
/usr/local/share/java/unifi/data
. Change to the directory. - Convert the private key from 2a to PKCS#1 format:
a.
openssl pkey -in privatekey.pem -traditional -out private.key
- Use
ace.jar
to import the key, cert, and CA cert chain to the keystore: a.java -jar ../lib/ace.jar import_key_cert private.key cert.pem cacerts.pem
I hereby claim:
- I am clocklear on github.
- I am corylocklear (https://keybase.io/corylocklear) on keybase.
- I have a public key ASBBk0t0a9aa4kmb09s7gMvkRpRNh16Tfq9DLd3o0xQnFwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PROGNAME=$(basename $0) | |
# change these to fit your needs | |
IPRANGE="10.96.0.0/24" | |
FLAGS="--memory 4096 --cpus 4" | |
sub_help(){ | |
echo "Usage: $PROGNAME <subcommand> [options]" | |
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# af-magic-shlvl.zsh-theme | |
# Repo: https://github.com/andyfleming/oh-my-zsh | |
# Direct Link: https://gist.github.com/clocklear/ba7ea8849d0a36141cd72e356d7e4a8a | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
# primary prompt | |
PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%} | |
$FG[032]%~\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Colors! | |
BOLD='\033[1m' | |
GREEN='\033[32m' | |
WHITE='\033[37m' | |
RED='\033[91m' | |
YELLOW='\033[93m' | |
NC='\033[0m' # Reset everything |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function () { | |
return (+new Date() + Math.floor(Math.random() * 9999999).toString(36); | |
} |