forked from jonschlinkert/fill-range
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
674 additions
and
158 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
#!/usr/bin/env bash | ||
## | ||
# Generates new keys/certificates. | ||
# | ||
# Please consider carefully before running this again. | ||
# The certificates generated by this script are already | ||
# set as trusted by those working on Clever Canyon products. | ||
## | ||
|
||
cd "$(dirname "${BASH_SOURCE[0]}")" || { echo 'CD failure.' >&2 && exit 1; } | ||
. ../../../../node_modules/@clevercanyon/utilities.bash/dist/load.bash || { echo 'Load failure.' >&2 && exit 1; } | ||
|
||
# Configuration of SSL certs. | ||
# A few variables for CLI args below. | ||
|
||
output_dir=. # Current directory. | ||
days=395 # {@see https://o5p.me/Fz1NWM}. | ||
|
||
key_usages=$( | ||
tr -d '\n' <<- 'ooo' | ||
digitalSignature, | ||
nonRepudiation, | ||
keyEncipherment, | ||
dataEncipherment, | ||
keyAgreement, | ||
keyCertSign, | ||
cRLSign | ||
ooo | ||
) | ||
extended_key_usages=$( | ||
tr -d '\n' <<- 'ooo' | ||
serverAuth, | ||
clientAuth, | ||
codeSigning, | ||
emailProtection, | ||
anyExtendedKeyUsage | ||
ooo | ||
) | ||
subject=$( | ||
tr -d '\n' <<- 'ooo' | ||
/L=Auburn | ||
/ST=ME | ||
/C=US | ||
/O=Clever Canyon | ||
/OU=Engineering | ||
/CN=clevercanyon.com | ||
/[email protected] | ||
ooo | ||
) | ||
# Browsers don’t acknowledge `*.tld`, because that would effectively | ||
# cover everything on an entire TLD. That’s why we have `*.x.tld`. | ||
# See: <https://o5p.me/YPcyex> for further details. | ||
subject_alt_names=$( | ||
tr -d '\n' <<- 'ooo' | ||
IP:::1, | ||
IP:127.0.0.1, | ||
DNS:mac, | ||
DNS:*.mac, | ||
DNS:*.x.mac, | ||
DNS:loc, | ||
DNS:*.loc, | ||
DNS:*.x.loc, | ||
DNS:dkr, | ||
DNS:*.dkr, | ||
DNS:*.x.dkr, | ||
DNS:vm, | ||
DNS:*.vm, | ||
DNS:*.x.vm, | ||
DNS:local, | ||
DNS:*.local, | ||
DNS:*.x.local, | ||
DNS:localhost, | ||
DNS:*.localhost, | ||
DNS:*.x.localhost, | ||
DNS:clevercanyon.com, | ||
DNS:*.clevercanyon.com, | ||
DNS:hop.gdn, | ||
DNS:*.hop.gdn | ||
ooo | ||
) | ||
# Start clean each time. | ||
|
||
rm -f ./openssl/store/certs/* | ||
rm -f ./openssl/store/certs-db | ||
rm -f ./openssl/store/certs-db.* | ||
rm -f ./openssl/store/serial-db | ||
|
||
if [[ ! -d "${output_dir}" ]]; then mkdir -p "${output_dir}"; fi | ||
if [[ ! -d ./openssl/store/certs ]]; then mkdir -p ./openssl/store/certs; fi | ||
touch ./openssl/store/certs-db | ||
|
||
# Root & intermediate CA keys. | ||
|
||
openssl genrsa -out "${output_dir}"/root-ca-key.pem 4096 | ||
openssl genrsa -out "${output_dir}"/i10e-ca-key.pem 4096 | ||
|
||
# Root CA certificate. | ||
|
||
openssl req -config ./openssl/config.ini -extensions v3_ca \ | ||
-new \ | ||
-x509 \ | ||
-nodes \ | ||
-sha512 \ | ||
-days "${days}" \ | ||
-key "${output_dir}"/root-ca-key.pem \ | ||
-out "${output_dir}"/root-ca-crt.pem \ | ||
-subj "${subject}" -addext 'subjectAltName = '"${subject_alt_names}" \ | ||
-addext 'keyUsage = '"${key_usages}" -addext 'extendedKeyUsage = '"${extended_key_usages}" | ||
|
||
# Intermediate CSR & CA certificate. | ||
|
||
openssl req -config ./openssl/config.ini -extensions v3_i10e \ | ||
-new \ | ||
-nodes \ | ||
-sha512 \ | ||
-key "${output_dir}"/i10e-ca-key.pem \ | ||
-out "${output_dir}"/i10e-ca-csr.pem \ | ||
-subj "${subject}" -addext 'subjectAltName = '"${subject_alt_names}" \ | ||
-addext 'keyUsage = '"${key_usages}" -addext 'extendedKeyUsage = '"${extended_key_usages}" | ||
|
||
openssl ca -config ./openssl/config.ini -extensions v3_ca \ | ||
-notext \ | ||
-batch \ | ||
-md sha512 \ | ||
-rand_serial \ | ||
-days "${days}" \ | ||
-cert "${output_dir}"/root-ca-crt.pem \ | ||
-keyfile "${output_dir}"/root-ca-key.pem \ | ||
-in "${output_dir}"/i10e-ca-csr.pem \ | ||
-out "${output_dir}"/i10e-ca-crt.pem |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@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YIKwYB | ||
BQUHAwIGCCsGAQUFBwMDBggrBgEFBQcDBAYEVR0lADANBgkqhkiG9w0BAQ0FAAOC | ||
AgEAKHWmqJPcB/Tp5SB8lfsJXCmw4mLO2Nl6YBN4xW/rmqV0gsJNd+RqZpSx3nZy | ||
ksCe3W02k8zvxYazFIZLYkPvOfxyr7nNjsCDoGQ66SZWk+6SWOpsQNO/GciT7moW | ||
A9XeSAqHYSZs9SgpQP/JEk+mCm1R2fwQsNSn0exXPI82mtfxk+OOt25886gD/v/d | ||
HqLuxrApLgrQ0QpPVWuPG48OqOhZhx9prKn+n7vLU482AgbzD4zPQqePcHRQuf+J | ||
LdgCgQIrkCw1SMs4+63U2Ds8+aesWa+imLPJlJg/u9nqWJz+AdTzlc+RlSwCukg1 | ||
h0JK5mk77g81RHY/L7zyMxqzASUzYskAHkwl6WdovxZvcfAosH0JnDjmoOTzRY98 | ||
HeqcwuWkaIo+999v8rvce3ZBYk3IBnHZyKh7AfDuvUM/o+WBwc6W9yHhPp25xR1a | ||
JOc+l0xzit7VdSOWyghJ4mw/1RDrcJN3PozTldIt6GIhtzofkzP2AZNqEGC6bseg | ||
gslELP41U+Lqt8ixe1ryYneV6lRXU4yza/f+jM1+MAR3SqHa/I9/cRrXqYuQWb5I | ||
iG+gARIxOWeKFy0IbqWHjmigvKo4Ez7hQ7AnvhTCyL/U3dHyIW/+VE5EeDb9xsCv | ||
2kaMyAr7h3AQHUU9kBr0hYwJ7m+tYG97FN9hNpOco/Ec+WQ= | ||
-----END CERTIFICATE----- |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-----BEGIN CERTIFICATE REQUEST----- | ||
MIIGMzCCBBsCAQAwgZsxDzANBgNVBAcMBkF1YnVybjELMAkGA1UECAwCTUUxCzAJ | ||
BgNVBAYTAlVTMRYwFAYD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zBI2dvIXrOdeQ3xp | ||
WFzSos+wDg== | ||
-----END CERTIFICATE REQUEST----- |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIJRAIBADANBgkqhkiG9w0BAQEFAASCCS4wggkqAgEAAoICAQCXlmPpd5OXAYrT | ||
bEJL6LEI3CmUO9ER2PztTorXOiDrOpuNHEC8YJ1jma2C7SjyFR7dQQubZJSi1VBv | ||
oL+2Seqs+dfZd78PMxdChoYRyyU064H87aiAr9ffWtVGgE4AgNj7XH3j5aetVA64 | ||
YfCaRfxuG1/jPFvi1f9xyOLjk9ldAMkvhAJOYyKWTNevGWJkCERaDU0Ceugrxg4w | ||
Bo9b70sbhp2yI0qNjFActT9Hua3qVwCB4ImVWr1XrQ4usfF2uv/3s8QBUBrISTnG | ||
DoflC3+KahGKhrEfwE11nKSujKjov9sw1AgMCD7q3rUjn1rCcH0engi3CGhoXO8R | ||
cpZgFA48g9uESiU8tKCYbm7lBId5JvWAWFPs05hcZEXMDwOsi0y8Gv5bPLnEABou | ||
OGyP8Mx1+ie8ZWpxXiSzbtTmvJT5tEGJ3hnU3hj0J4MuoUybozfZMuoyBLhNn1sf | ||
V9+5RV5e6uUst1bJkOVs+7OCwvQO4GgPu23luPqtzuZPIfsUJlwxB2Qqk03FrPlA | ||
xWvff2NYFtw1XkyIja3nctJfoZJRcBJHXfWP5gCYbkxoew0Ptla9Yfow3yzkzyU7 | ||
XYabzp83smyo/y9O+VKJadHlEC/F0qbe/18LDcw9bg+cdru1ePDs+snhbgOZ+aLa | ||
cT+2K4QX9/ugFbqck58jObo/Ssc0OQIDAQABAoICABcfa3h9SH1Je3CE/CyRvzt6 | ||
QI9qJm83WbF7KxuUiYPy3y/BsQWVzpGXALbOz/xJXiQNhs86eEp0Xn4rQk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ff9jAoIBAQCSRYc91aNf3h1mgfB/ZOxHf8sb7UwHzHl0Iqq/AokF2xTxmQCuS2Dz | ||
DYQzvkeVxQevIAZhPrVB6FRe4OFT/4IWMf1cdvDJ7xKdAMEQNRoK/Y5kOT0acZ8s | ||
R9FlSYp5RzUX7w+Qmnh20D/mNLxRjJ8dOk/GUgKqgrXKUbSkWqHkQUD4++M9mS0t | ||
Ha2iBzDenzAqcaHrXcWNxL/43g7w5LO2aSKc87Gno/dEfxTw0ACvJQcTAR1yS1jq | ||
HXJOJJja7ctXkZbDZhmorBmh3uZ4pHXTmHKrOsLaaCXSIvSZDLNv12da0byn7AqJ | ||
3HfDhbpEGOz0szbWut/dayxK3THjdr41 | ||
-----END PRIVATE KEY----- |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
## | ||
# Tells macOS to trust our CAs. | ||
## | ||
|
||
cd "$(dirname "${BASH_SOURCE[0]}")" || { echo 'CD failure.' >&2 && exit 1; } | ||
. ../../../../../../node_modules/@clevercanyon/utilities.bash/dist/load.bash || { echo 'Load failure.' >&2 && exit 1; } | ||
|
||
# Adds root & intermediate CAs to macOS system keychain. | ||
|
||
sudo security -v add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ../../root-ca-crt.pem | ||
sudo security -v add-trusted-cert -d -r trustAsRoot -k /Library/Keychains/System.keychain ../../i10e-ca-crt.pem |
Oops, something went wrong.