Page 1 of 1

Looking for example on how to use ScCryptoAPIStorage

Posted: Thu 09 Jun 2016 19:54
by aradtech
I am unable find any examples on using ScCryptoApiStorage . what I am trying to do is provide a list of the

Certlocation:=clcurrentuser
CertproviderType:=ptSystem
Certstorename:=MY

to the user to select the correct cert for use from the list.

Thanks
Chris Greenwell

Re: Looking for example on how to use ScCryptoAPIStorage

Posted: Tue 14 Jun 2016 09:23
by ViktorV
To work with certificates using TScCryptoAPIStorage, you should use the TScCryptoAPIStorage.Certificates property. See more details about the property in SecureBridge help: https://www.devart.com/sbridge/docs/tsc ... icates.htm
To retrieve the list of certificates, you can execute the TScCryptoAPIStorage.Certificates.GetCertificateNames method. For example:

Code: Select all

  ScCryptoAPIStorage.Certificates.GetCertificateNames(Memo.Lines); // Memo is a TMemo component
If you haven't added storage certificates to "MY" by yourself, it will be empty.