Skip to content

Instantly share code, notes, and snippets.

View divamgupta's full-sized avatar

Divam Gupta divamgupta

View GitHub Profile
@soarez
soarez / ca.md
Last active May 3, 2024 00:04
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@kwd
kwd / gist:3149538
Created July 20, 2012 08:19 — forked from jnaskali/gist:2632774
Bash: extract compressed files
# Extract Files ( https://wiki.archlinux.org/index.php/Bashrc_helpers )
extract() {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.tar.xz) tar xvJf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;