Copy TLS cert within script

next
Sayan Nandan 3 years ago
parent 2d7b9d7667
commit d826acf0c1

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

@ -6,3 +6,4 @@ function gen_sub() {
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
cp cert.pem $PWD/server/cert.pem

Loading…
Cancel
Save