Lua
Lua
Load a Certificate from the Windows Certificate Store
See more Certificates Examples
Demonstrates how to load a certificate that has been pre-installed in the registry-based Windows certificate store. This is generally how one would load a certificate that is stored on a smart card or usb token.Chilkat Lua Downloads
local chilkat = require("chilkat")
local cert = chilkat.Cert.new()
local success = cert:load_by_common_name("PIVKey 7ED53EC611D3F84396212C5842BB563F")
if not success then
print(cert.last_error_text)
return
end
print("Loaded: " .. cert.subject_dn)