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

Keybase proof

I hereby claim:

  • I am aljamima on github.
  • I am shawnm (https://keybase.io/shawnm) on keybase.
  • I have a public key ASAaId70rsuW2JQOzWP954ka3feim7Q6HnWi9izWFJjjawo

To claim this, I am signing this object:

@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