Skip to content

Commit

Permalink
fix issue with openssl 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel cheng committed Jun 2, 2022
1 parent dfd0ed4 commit fab7f8a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ clean:
make clean -C ./advps
make clean -C ./keys

./keys/.srl:
echo "using OpenSSL 3? it seems to work without .srl"
touch ./keys/.srl
cleanup_srl:
if [ -s ./keys/rootCA.srl ]; then \
if [ -s ./keys/.srl ]; then \
echo "using old OpenSSL"; mv ./keys/.srl ./keys/rootCA.srl; \
else \
echo "using OpenSSL 3"; touch ./keys/rootCA.srl; \
fi \
fi

./keys/rootCA.srl: ./keys/.srl
mv ./keys/.srl ./keys/rootCA.srl

rename_srl: ./keys/rootCA.srl

install_ssl: rename_srl
install_ssl: cleanup_srl
cp ./config/ssl.json $(INSTALL_PATH)
cp ./keys/rootCA.key $(INSTALL_PATH)
cp ./keys/rootCA.pem $(INSTALL_PATH)
Expand Down

0 comments on commit fab7f8a

Please sign in to comment.