Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port backup tests to python #2907

Merged
merged 19 commits into from
Mar 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use mktmp so tmp file is not static
  • Loading branch information
hubertdeng123 committed Mar 15, 2024
commit 7bbfa3a833db8fed84396732336f008387012f90
6 changes: 5 additions & 1 deletion _integration-test/custom-ca-roots/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ openssl req -new -nodes -newkey rsa:2048 -keyout $TEST_NGINX_CONF_PATH/self.test

# openssl req -in nginx/self.test.req -text -noout

# Store extension details in a temporary file since python subprocess can't use process substitution
temp_file=$(mktemp)
printf "subjectAltName=DNS:self.test" >"$temp_file"

openssl x509 -req -in $TEST_NGINX_CONF_PATH/self.test.req -CA $TEST_NGINX_CONF_PATH/ca.crt -CAkey $TEST_NGINX_CONF_PATH/ca.key \
-addext "subjectAltName=DNS:self.test" \
-extfile "$temp_file" \
-CAcreateserial -out $TEST_NGINX_CONF_PATH/self.test.crt -days 1 -sha256

# openssl x509 -in nginx/self.test.crt -text -noout
Expand Down
Loading