skynet open https configuration

Modify Makefile

Mac follows:

# https : turn on TLS_MODULE to add https support

TLS_MODULE=ltls
TLS_LIB="$(shell brew --prefix openssl)/lib"
TLS_INC="$(shell brew --prefix openssl)/include"

Under Linux:

# https : turn on TLS_MODULE to add https support

TLS_MODULE=ltls
TLS_LIB=
TLS_INC=

Provided that are installed openssl

Then set in the config

certfile = "./host.cert"
keyfile = "./host.key"

With simpleweb.lua test, remember the first http to https

Guess you like

Origin www.cnblogs.com/hangj/p/12293241.html