Skip to content

Commit fab7f8a

Browse files
committed
fix issue with openssl 1.x
1 parent dfd0ed4 commit fab7f8a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ clean:
4343
make clean -C ./advps
4444
make clean -C ./keys
4545

46-
./keys/.srl:
47-
echo "using OpenSSL 3? it seems to work without .srl"
48-
touch ./keys/.srl
46+
cleanup_srl:
47+
if [ -s ./keys/rootCA.srl ]; then \
48+
if [ -s ./keys/.srl ]; then \
49+
echo "using old OpenSSL"; mv ./keys/.srl ./keys/rootCA.srl; \
50+
else \
51+
echo "using OpenSSL 3"; touch ./keys/rootCA.srl; \
52+
fi \
53+
fi
4954

50-
./keys/rootCA.srl: ./keys/.srl
51-
mv ./keys/.srl ./keys/rootCA.srl
52-
53-
rename_srl: ./keys/rootCA.srl
54-
55-
install_ssl: rename_srl
55+
install_ssl: cleanup_srl
5656
cp ./config/ssl.json $(INSTALL_PATH)
5757
cp ./keys/rootCA.key $(INSTALL_PATH)
5858
cp ./keys/rootCA.pem $(INSTALL_PATH)

0 commit comments

Comments
 (0)