-
-
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
33 changed files
with
500 additions
and
343 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
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 |
---|---|---|
|
@@ -36,7 +36,18 @@ extended_key_usages=$( | |
anyExtendedKeyUsage | ||
ooo | ||
) | ||
subject=$( | ||
root_subject=$( | ||
tr -d '\n' <<- 'ooo' | ||
/L=Auburn | ||
/ST=ME | ||
/C=US | ||
/O=Clever Canyon | ||
/OU=Engineering | ||
/CN=root.clevercanyon.com | ||
/[email protected] | ||
ooo | ||
) | ||
i10e_subject=$( | ||
tr -d '\n' <<- 'ooo' | ||
/L=Auburn | ||
/ST=ME | ||
|
@@ -81,7 +92,10 @@ subject_alt_names=$( | |
DNS:*.clevercanyon.com, | ||
DNS:hop.gdn, | ||
DNS:*.hop.gdn | ||
DNS:*.hop.gdn, | ||
DNS:o5p.me, | ||
DNS:*.o5p.me | ||
ooo | ||
) | ||
# Start clean each time. | ||
|
@@ -90,41 +104,51 @@ rm -f ./openssl/store/certs/* | |
rm -f ./openssl/store/certs-db | ||
rm -f ./openssl/store/certs-db.* | ||
rm -f ./openssl/store/serial-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. | ||
# Root self-signed & 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. | ||
# Root self-signed CA certificate. | ||
|
||
openssl req -config ./openssl/config.ini -extensions v3_ca \ | ||
openssl req -config ./openssl/config.ini \ | ||
-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}" \ | ||
-out "${output_dir}"/root-ca-csr.pem \ | ||
-subj "${root_subject}" -addext 'subjectAltName = '"${subject_alt_names}" \ | ||
-addext 'keyUsage = '"${key_usages}" -addext 'extendedKeyUsage = '"${extended_key_usages}" | ||
|
||
openssl ca -config ./openssl/config.ini -extensions v3_root_ca \ | ||
-selfsign \ | ||
-notext \ | ||
-batch \ | ||
-md sha512 \ | ||
-rand_serial \ | ||
-days "${days}" \ | ||
-keyfile "${output_dir}"/root-ca-key.pem \ | ||
-in "${output_dir}"/root-ca-csr.pem \ | ||
-out "${output_dir}"/root-ca-crt.pem | ||
|
||
# Intermediate CSR & CA certificate. | ||
|
||
openssl req -config ./openssl/config.ini -extensions v3_i10e \ | ||
openssl req -config ./openssl/config.ini \ | ||
-new \ | ||
-nodes \ | ||
-sha512 \ | ||
-key "${output_dir}"/i10e-ca-key.pem \ | ||
-out "${output_dir}"/i10e-ca-csr.pem \ | ||
-subj "${subject}" -addext 'subjectAltName = '"${subject_alt_names}" \ | ||
-subj "${i10e_subject}" -addext 'subjectAltName = '"${subject_alt_names}" \ | ||
-addext 'keyUsage = '"${key_usages}" -addext 'extendedKeyUsage = '"${extended_key_usages}" | ||
|
||
openssl ca -config ./openssl/config.ini -extensions v3_ca \ | ||
openssl ca -config ./openssl/config.ini -extensions v3_i10e_ca \ | ||
-notext \ | ||
-batch \ | ||
-md sha512 \ | ||
|
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 |
---|---|---|
@@ -1,45 +1,45 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIIBDCCBeygAwIBAgIUVVVoRUuFZA4kZgpAH1q7TeC+B5AwDQYJKoZIhvcNAQEN | ||
BQAwgZsxDzANBgNVBAcMBkF1YnVybjELMAkGA1UECAwCTUUxCzAJBgNVBAYTAlVT | ||
MRYwFAYDVQQKDA1DbGV2ZXIgQ2FueW9uMRQwEgYDVQQLDAtFbmdpbmVlcmluZzEZ | ||
MBcGA1UEAwwQY2xldmVyY2FueW9uLmNvbTElMCMGCSqGSIb3DQEJARYWYWRtaW5A | ||
Y2xldmVyY2FueW9uLmNvbTAeFw0yMzEwMDQxNTE1NTZaFw0yNDExMDIxNTE1NTZa | ||
MIGKMRkwFwYDVQQDDBBjb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AbZnrTgbCaCtvKL7eMK1Yzxu/gAN/QroT2mbH | ||
XlnxQffNjeKq9RA2e7ZOkR5m8eu83Zw26qTCEMHX5/NmBfQ= | ||
-----END CERTIFICATE----- |
Oops, something went wrong.