スカイネットオープンhttpsの設定

Makefileを修正

マックは次のとおりです。

# 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"

Linux 下:

# https : turn on TLS_MODULE to add https support

TLS_MODULE=ltls
TLS_LIB=
TLS_INC=

OpenSSLをインストールされていれば

そして、コンフィグで設定

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

simpleweb.luaテストでは、httpsに最初のhttpを覚えています

おすすめ

転載: www.cnblogs.com/hangj/p/12293241.html