diff --git a/Makefile b/Makefile index 14eee83..cb07af2 100644 --- a/Makefile +++ b/Makefile @@ -42,12 +42,14 @@ CN ?= localhost SAN ?= DNS:localhost,IP:127.0.0.1 generate_server_cert: + mkdir -p ./certs openssl req -x509 -newkey rsa:4096 -keyout ./certs/ssl_key.pem \ -out ./certs/ssl_cert.pem -days 36500 -nodes \ -subj "/CN=$(CN)" \ -addext "subjectAltName = $(SAN)" generate_client_cert: + mkdir -p ./certs openssl req -x509 -newkey rsa:4096 -keyout ./certs/ssl_client_key.pem \ -out ./certs/ssl_client_cert.pem -days 36500 -nodes \ -subj "/CN=$(CN)" \ @@ -112,4 +114,4 @@ test: TEST_INTEGRATION=false go test ./... -v -p 1 serve: - go run main.go serve \ No newline at end of file + go run main.go serve