Last active
October 15, 2022 16:06
-
-
Save joaompinto/927ec012347d1a15fdfa4a9cd12a1c71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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