Sample code for 30+ languages & platforms
Lua

Require that the Web Server's SSL Certificate is Non-Expired and the Signature is Valid

Demonstrates setting the RequireSslCertVerify property to require that the web server's SSL/TLS certificate is non-expired and that the certificate's signature is valid.

Chilkat Lua Downloads

Lua
local chilkat = require("chilkat")

-- This example assumes the Chilkat HTTP API to have been previously unlocked.
-- See Global Unlock Sample for sample code.

local url = "https://chilkatsoft.com"

local http = chilkat.Http.new()
http.require_ssl_cert_verify = true

local html = http:quick_get_str(url)
if not http.last_method_success then
    print(http.last_error_text)
    return
end

print("Success.")