Copy TLS cert within script

next
Sayan Nandan 3 years ago
parent 2d7b9d7667
commit d826acf0c1

@ -125,7 +125,6 @@ test: .build-server
@echo "====================================================================" @echo "===================================================================="
@echo "Running all tests" @echo "Running all tests"
@echo "====================================================================" @echo "===================================================================="
@cp cert.pem server/
cargo test $(TARGET_ARG) -- --test-threads=1 cargo test $(TARGET_ARG) -- --test-threads=1
@$(STOP_SERVER) @$(STOP_SERVER)
@sleep 2 @sleep 2

@ -6,3 +6,4 @@ function gen_sub() {
echo "$result" echo "$result"
} }
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj $(gen_sub '/C=US/CN=example.com') -keyout key.pem -out cert.pem openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj $(gen_sub '/C=US/CN=example.com') -keyout key.pem -out cert.pem
cp cert.pem $PWD/server/cert.pem

Loading…
Cancel
Save