-
Notifications
You must be signed in to change notification settings - Fork 53
How to enable HTTPS in Silgy
Jurek Muszyński edited this page Jun 3, 2020
·
14 revisions
sudo yum install openssl-devel
Add -lssl -lcrypto
, so m would look like this:
#!/bin/sh
echo Making silgy_app...
g++ silgy_app.cpp \
../lib/silgy_eng.c ../lib/silgy_lib.c ../lib/silgy_usr.c \
-I. -I../lib \
-lssl -lcrypto \
-lrt \
-s -O3 \
-o ../bin/silgy_app
#define HTTPS
Let's Encrypt is a good place to get one for free. Their certs are accepted by all popular browsers.
Set certFile, keyFile and optionally certChainFile in $SILGYDIR/bin/silgy.conf
:
certFile=/etc/letsencrypt/live/example.com/fullchain.pem
certChainFile=/etc/letsencrypt/live/example.com/chain.pem
keyFile=/etc/letsencrypt/live/example.com/privkey.pem