Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local http_tls = require "http.tls"
  2. local openssl_pkey = require "openssl.pkey"
  3. local openssl_x509 = require "openssl.x509"
  4.  
  5. local ssl_termination_ctx = http_tls.new_server_context()
  6. ssl_termination_ctx:setCertificate(openssl_x509.new(row.cert))
  7. ssl_termination_ctx:setPrivateKey(openssl_pkey.new(row.key))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement