[lexik/jwt-authentication-bundle] Fix generate-jwt-keys target in Makefile

This commit is contained in:
Teoh Han Hui
2017-05-30 19:32:23 +08:00
parent 2911cba850
commit 651c84f968
+3 -2
View File
@@ -1,6 +1,7 @@
OPENSSL_BIN := $(shell which openssl)
generate-jwt-keys:
ifeq (, $(shell which openssl))
$(error "Unable to generate keys (needs OpenSSL)")
ifndef OPENSSL_BIN
$(error "Unable to generate keys (needs OpenSSL)")
endif
mkdir -p etc/jwt
openssl genrsa -passout pass:${JWT_PASSPHRASE} -out ${JWT_PRIVATE_KEY_PATH} -aes256 4096