-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
11 changed files
with
275 additions
and
273 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 was deleted.
Oops, something went wrong.
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,30 +1,30 @@ | ||
-----BEGIN ENCRYPTED PRIVATE KEY----- | ||
MIIFHDBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQIWronQZo1Ik4CAggA | ||
MAwGCCqGSIb3DQIJBQAwFAYIKoZIhvcNAwcECMg13d2ddhFEBIIEyKU+lGB4kLWv | ||
Nc/sy5bTm7OGJeZO10EA7htzBVebazMC6to44ymRIeAoQxxeF1KMUOytr3Yoz4J1 | ||
ZzW6kqKt3vNF6yuE6oAx6mZEJLMdRzyiaCgHmACSttXH0j6jMLuo93vea3Bg2GAs | ||
tnEjpVzP0wNYuDRqcYtTv/fNa9oyJQ7jRsg2kncp20hdNx6l1ef8IltDBhEXdAO0 | ||
WzYGECB84JnT8iQjTs8ZJNHKTRWlASXYuzuNCdJakXX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K6dybgsg1YJfO6oNKyk9m01QWYgelyqN8VL+ZbM | ||
M/YnwZVvVr/72mRxZulVx85d9GozGN5fD8tX7WyWta5Z8SdLlfwdl1ER0lEW5URa | ||
Tsc86Gg3p6K/lJBJUJOhWQ== | ||
-----END ENCRYPTED 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 |
---|---|---|
|
@@ -2,34 +2,32 @@ | |
|
||
set -e | ||
|
||
cp peer_certificate.pem invalid_peer_certificate.pem | ||
cp peer_private_key.pem invalid_peer_private_key.pem | ||
|
||
printf "\n\n ======== \e[33muse common name: * \e[0m=========\n\n" | ||
|
||
openssl req -newkey rsa:4096 -nodes -keyout server_key.pem -x509 -days 1097 -out server_cert.pem | ||
openssl req -newkey rsa:4096 -nodes -keyout server_key.pem -x509 -days 99999 -out server_cert.pem | ||
cat server_key.pem server_cert.pem >server.pem | ||
|
||
PATH=/opt/homebrew/Cellar/openssl@3/3.0.3/bin:/opt/homebrew/etc/[email protected]/misc:$PATH:/usr/local/etc/openssl/misc:/usr/lib/ssl/misc | ||
|
||
rm -rf demoCA | ||
mkdir demoCA | ||
mkdir demoCA/private | ||
mkdir demoCA/newcerts | ||
touch demoCA/index.txt | ||
|
||
printf "\n\n ======== \e[33muse passphrase: \"test\" \e[0m=========\n\n" | ||
printf "\n\n ======== \e[33muse common name: \"test\" \e[0m=========\n\n" | ||
|
||
CA.pl -newca | ||
openssl req -new -keyout ./demoCA/private/cakey.pem -out ./demoCA/careq.pem -passout pass:test | ||
openssl ca -create_serial -out ./demoCA/cacert.pem -days 99999 -batch -keyfile ./demoCA/private/cakey.pem -selfsign -extensions v3_ca -passin pass:test -infiles ./demoCA/careq.pem | ||
|
||
cp ./demoCA/cacert.pem root_ca_cert.pem | ||
cp ./demoCA/private/cakey.pem root_ca_private.pem | ||
|
||
printf "\n\n ======== \e[33muse passphrase: \"test\" \e[0m=========\n\n" | ||
printf "\n\n ======== \e[33muse common name: * \e[0m=========\n\n" | ||
|
||
CA.pl -newreq | ||
openssl req -new -keyout newkey.pem -out newreq.pem -passin pass:test -passout pass:test | ||
|
||
cp newkey.pem peer_private_key.pem | ||
|
||
CA.pl -sign | ||
openssl ca -policy policy_anything -out newcert.pem -days 99999 -passin pass:test -infiles newreq.pem | ||
|
||
cp newcert.pem peer_certificate.pem | ||
|
||
|
Oops, something went wrong.