Skip to content

Instantly share code, notes, and snippets.

View addomafi's full-sized avatar
🤓
Working

Adauto Martins addomafi

🤓
Working
View GitHub Profile

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
#!/bin/bash
users=$1
sudoers=$2
for user in $users; do
set -- `echo $user | tr ':' ' '`
user=$1
pem=$(echo "ssh-rsa $2" | base64 -w 0)
echo "Adding user ${user}"

Keybase proof

I hereby claim:

  • I am addomafi on github.
  • I am adautomartins (https://keybase.io/adautomartins) on keybase.
  • I have a public key ASDBKXIFMd9xWhKxsBomATp6J9FBCGITOSxLBEAvcTukmwo

To claim this, I am signing this object: