prosodyctl
changeset 8205 85a60e863509
parent 8201 db82ce3decee
child 8206 a7863f4aae65
child 8250 2c386ee5cd5c
equal deleted inserted replaced
8203:e92585ab4998 8205:85a60e863509
   251 
   251 
   252 local prosodyctl = require "util.prosodyctl"
   252 local prosodyctl = require "util.prosodyctl"
   253 local socket = require "socket"
   253 local socket = require "socket"
   254 
   254 
   255 local http = require "net.http"
   255 local http = require "net.http"
   256 local config_ssl = config.get("*", "ssl")
   256 local config_ssl = config.get("*", "ssl") or {}
   257 local https_client = config.get("*", "client_https_ssl")
   257 local https_client = config.get("*", "client_https_ssl")
   258 http.default.options.sslctx = require "core.certmanager".create_context("client_https port 0", "client",
   258 http.default.options.sslctx = require "core.certmanager".create_context("client_https port 0", "client",
   259 	{ capath = config_ssl.capath, cafile = config_ssl.cafile, verify = "peer", }, https_client);
   259 	{ capath = config_ssl.capath, cafile = config_ssl.cafile, verify = "peer", }, https_client);
   260 
   260 
   261 -----------------------
   261 -----------------------