Tcl
Tcl
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 Tcl Downloads
load ./chilkat.dll
set success 0
set cert [new_CkCert]
set success [CkCert_LoadByCommonName $cert "PIVKey 7ED53EC611D3F84396212C5842BB563F"]
if {$success != 1} then {
puts [CkCert_lastErrorText $cert]
delete_CkCert $cert
exit
}
puts "Loaded: [CkCert_subjectDN $cert]"
delete_CkCert $cert