Lua Requires Chilkat v10.0.0+
Lua
Windows Certificate Stores - Find Certificate by Common Name
See more Certificates Examples
Searches the Windows certificate stores for a certificate that matches the specified common name (CN).Chilkat Lua Downloads
local chilkat = require("chilkat")
local cert = chilkat.Cert.new()
local success = cert:load_by_common_name("Chilkat Software, Inc.")
if not success then
print(cert.last_error_text)
return
end
print(cert.subject_dn)
print("Success.")