(Visual Basic 6.0) Example: Crypt2.SetSigningCert method
Demonstrates how to call the SetSigningCert method.
' Signing certificates can be obtained from many different sources..
' Load from a PFX
Dim cryptA As New ChilkatCrypt2
Dim certA As New ChilkatCert
Dim success As Long
success = certA.LoadPfxFile("c:/someDir/pfx_files/a.pfx","pfx_file_password")
success = cryptA.SetSigningCert(certA)
' ...
' Load from a smart card or USB token.
Dim cryptB As New ChilkatCrypt2
Dim certB As New ChilkatCert
certB.SmartCardPin = "123456"
success = certB.LoadFromSmartcard("")
success = cryptB.SetSigningCert(certB)
' ...
' Load from a the Windows certificate store or macOS keychain
Dim cryptC As New ChilkatCrypt2
Dim certC As New ChilkatCert
success = certC.LoadByCommonName("Xyz 123")
success = cryptC.SetSigningCert(certC)
' ...
|