-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into SHIELD-64-security-fixes-o…
…f-session-cookie
- Loading branch information
Showing
69 changed files
with
678 additions
and
658 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.0.85 | ||
4.0.93 |
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 |
---|---|---|
@@ -1,28 +1,20 @@ | ||
#!/bin/bash | ||
|
||
openssl genrsa -out MyRootCA.key 2048 | ||
|
||
openssl req -x509 -new -days 1095 -key MyRootCA.key -sha256 -out MyRootCA.pem -subj '/C=US/ST=Washington/L=Seattle/O=Chef Software Inc/CN=chefrootca' | ||
|
||
openssl genrsa -out ssl-pkcs12.key 2048 | ||
|
||
openssl pkcs8 -v1 "PBE-SHA1-3DES" -in "ssl-pkcs12.key" -topk8 -out "ssl.key" -nocrypt | ||
|
||
openssl req -new -key ssl.key -out ssl.csr -subj '/C=US/ST=Washington/L=Seattle/O=Chef Software Inc/CN=chefadmin' | ||
|
||
openssl x509 -days 1095 -req -in ssl.csr -CA MyRootCA.pem -CAkey MyRootCA.key -CAcreateserial -out ssl.pem -sha256 | ||
|
||
echo " ================= Getting certs from vault using ===============" | ||
echo $OPENSEARCH_ROOT_CA_PEM | ||
echo $OPENSEARCH_NODE1_PEM | ||
echo $OPENSEARCH_NODE1_KEY_PEM | ||
|
||
cat <<EOF >> habitat/default.toml | ||
# server public cert used for ssl listener | ||
ssl_cert = """$(cat ssl.pem)""" | ||
ssl_cert = """$OPENSEARCH_NODE1_PEM""" | ||
EOF | ||
|
||
cat <<EOF >> habitat/default.toml | ||
# server private key | ||
ssl_key = """$(cat ssl.key)""" | ||
ssl_key = """$OPENSEARCH_NODE1_KEY_PEM""" | ||
EOF | ||
|
||
cat <<EOF >> habitat/default.toml | ||
# issuer public cert that signed the above server public cert | ||
issuer_cert = """$(cat MyRootCA.pem)""" | ||
issuer_cert = """$OPENSEARCH_ROOT_CA_PEM""" | ||
EOF |
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
Oops, something went wrong.