Skip to content

Instantly share code, notes, and snippets.

View edwinclement08's full-sized avatar

Edwin Clement edwinclement08

View GitHub Profile
#!/bin/bash
echo QUIT | openssl s_client -connect $DOMAIN_TO_FETCH_FROM:443 | sed -ne '/BEGIN CERT/,/END CERT/p' > my-cert
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n my-cert -i my-cert
certutil -d sql:$HOME/.pki/nssdb -L
#!/bin/bash
openssl genrsa -des3 -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
echo "Trust the Certificate; Ctrl-C when Done"
while true; do printf ""; sleep 1; done
sudo cp rootCA.pem /etc/ca-certificates/trust-source/anchors/rootCA_local.cert
@edwinclement08
edwinclement08 / tmux.conf
Created November 2, 2017 09:12 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000