Looking for example on how to use ScCryptoAPIStorage

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
aradtech
Posts: 2
Joined: Thu 09 Jun 2016 19:36

Looking for example on how to use ScCryptoAPIStorage

Post by aradtech » Thu 09 Jun 2016 19:54

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

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Looking for example on how to use ScCryptoAPIStorage

Post by ViktorV » Tue 14 Jun 2016 09:23

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.

Post Reply