Skip to content

Instantly share code, notes, and snippets.

@suid0
suid0 / Makefile
Created November 9, 2020 21:21 — forked from xenogenesi/Makefile
create self signed certificates
DOMAIN ?= mydomain.com
COUNTRY := IT
STATE := IT
COMPANY := Evil Corp.
# credits to: https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309
# usage:
@suid0
suid0 / self-signed-certificate-with-custom-ca.md
Created November 9, 2020 21:21 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@suid0
suid0 / ca.md
Created August 4, 2020 11:15 — forked from soarez/ca.md
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.

@suid0
suid0 / Puppet_6.3_Raspbian.md
Created March 14, 2019 02:11 — forked from aaroncoffey/Puppet_6.3_Raspbian.md
How to get puppet 6.3 up and running on a raspberry pi running Raspbian

How to get puppet 6.3 up and running on a raspberry pi running raspbian.

These instructions were tested on a pi 3 with the latest version of raspbian (Raspbian GNU/Linux 9.8 (stretch)).

This guide assumes basic competency with the command line. It also assumes you have a functional puppet master set up with the hostname of puppet. If you can ping puppet, you should be all set. Also note that I am just getting into puppet and am not a master of this domain. There may be errors, and there is probably a better way to do this, but in my searching, I was unable to locate a good set of instructions to get this working, so here we are. Feel free to contact me for corrections.

You can either switch to root sudo -i, or prepend all the following commands with sudo.

Update first

apt update
@suid0
suid0 / gist:a958251141805742e0f8d94c2887c50c
Created April 13, 2018 12:02 — forked from kbarber/gist:6456420
Renewing a Puppet CA cert
Renew Puppet CA cert.
Not the perfect idea, but should alleviate the need to resign every cert.
What you need from existing puppet ssl directory:
ca/ca_crt.pem
ca/ca_key.pem
Create an openssl.cnf:
[ca]
@suid0
suid0 / .block
Created February 13, 2018 09:32 — forked from donmccurdy/.block
Custom tiles in Google Maps
license: apache-2.0

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname