Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local http_tls = require "http.tls"
- local openssl_pkey = require "openssl.pkey"
- local openssl_x509 = require "openssl.x509"
- local ssl_termination_ctx = http_tls.new_server_context()
- ssl_termination_ctx:setCertificate(openssl_x509.new(row.cert))
- ssl_termination_ctx:setPrivateKey(openssl_pkey.new(row.key))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement