Skip to content

Instantly share code, notes, and snippets.

@aljamima
aljamima / self-signed-certificate-with-custom-ca.md
Created September 27, 2019 20:28 — 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
@aljamima
aljamima / generate-ssh-key.sh
Last active April 16, 2019 21:54 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
sudo ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
sudo ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
#sudo ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
@aljamima
aljamima / mailer.php
Created May 25, 2018 21:36 — forked from a-r-d/mailer.php
bitcoin mining status checker for slush's pool
<?php
/*
What: mailer script for notifications:
Required params under POST:
msg
sub
ret
pass