Skip to content

Instantly share code, notes, and snippets.

@joaompinto
Last active October 15, 2022 16:06
Show Gist options
  • Save joaompinto/927ec012347d1a15fdfa4a9cd12a1c71 to your computer and use it in GitHub Desktop.
Save joaompinto/927ec012347d1a15fdfa4a9cd12a1c71 to your computer and use it in GitHub Desktop.
curl -Lo ~/.local/bin/cfssljson https://github.com/cloudflare/cfssl/releases/download/v1.6.3/cfssljson_1.6.3_linux_amd64
curl -Lo ~/.local/bin/cfssl https://github.com/cloudflare/cfssl/releases/download/v1.6.3/cfssl_1.6.3_linux_amd64
chmod 755 ~/.local/bin/cfssl*
# Creating the Certificate Authority
cat > ca-csr.json << _EOF_
{
"CN": "Prototype Test Certificate Authority",
"key": {
"algo": "rsa",
"size": 2048
},
"names": [
{
"C": "US",
"L": "Columbia",
"O": "Prototype",
"OU": "Test Certificate Authority",
"ST": "Maryland"
}
]
}
_EOF_
cfssl gencert -initca ca-csr.json | cfssljson -bare ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment