Discuss this help topic in SecureBlackbox Forum

TElWinCertStorage.Add

TElWinCertStorage     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Adds the certificate to the system storage

Declaration

[VB.NET]
    Sub Add(ByVal Certificate As TElX509Certificate, ByVal CopyPrivateKey As Boolean)
    Sub Add(ByVal Certificate As TElX509Certificate, ByVal StoreName As String, ByVal CopyPrivateKey As Boolean, ByVal Exportable As Boolean, ByVal Protected As Boolean)
    Sub Add(ByVal Certificate As TElX509Certificate, ByVal BindToExistingPrivateKey As Boolean, ByVal StoreName As String, ByVal PrivateKeyContainerName As String)

[Pascal]
    procedure Add(Certificate : TElX509Certificate; CopyPrivateKey : boolean = true); overload;
    procedure Add(Certificate : TElX509Certificate; StoreName : string; CopyPrivateKey : boolean = true; Exportable : boolean = true; Protected : boolean = true);
    procedure Add(Certificate : TElX509Certificate; BindToExistingPrivateKey : boolean; const StoreName : string; const PrivateKeyContainerName : string);

[C++]
    void Add(TElX509Certificate &Certificate, bool CopyPrivateKey);
    void Add(TElX509Certificate *Certificate, bool CopyPrivateKey);
    void Add(TElX509Certificate &Certificate, const std::string &StoreName, bool CopyPrivateKey, bool Exportable, bool Protected);
    void Add(TElX509Certificate *Certificate, const std::string &StoreName, bool CopyPrivateKey, bool Exportable, bool Protected);
    void Add(TElX509Certificate &Certificate, bool BindToExistingPrivateKey, const std::string &StoreName, const std::string &PrivateKeyContainerName);
    void Add(TElX509Certificate *Certificate, bool BindToExistingPrivateKey, const std::string &StoreName, const std::string &PrivateKeyContainerName);

[PHP]
    void Add(TElX509Certificate $Certificate, bool $CopyPrivateKey)
    void Add(TElX509Certificate $Certificate, string $StoreName, bool $CopyPrivateKey, bool $Exportable, bool $Protected)
    void Add(TElX509Certificate $Certificate, bool $BindToExistingPrivateKey, string $StoreName, string $PrivateKeyContainerName)

[Java]
    void add(TElX509Certificate Certificate, String StoreName, boolean CopyPrivateKey, boolean Exportable, boolean Protected);
    void add(TElX509Certificate Certificate, boolean BindToExistingPrivateKey, String StoreName, String PrivateKeyContainerName);
    void add(TElX509Certificate Certificate, boolean CopyPrivateKey);

Parameters

  • Certificate - Certificate object, initialized by LoadFromBuffer method
  • StoreName - System store name, where to put the certificate.
  • CopyPrivateKey - True - private key will be copied when certificate is added.
    False - private key will not be copied.
  • Exportable - True - private key will be marked as exportable.
    False - private key will not be marked as exportable.
  • Protected - True - private key will be marked as protected.
    False - private key will not be marked as protected.
  • BindToExistingPrivateKey - True - certificate will be bound to existing private key.
  • PrivateKeyContainerName - Specifies private key container.

Description

    Use this method to add certificate to system certificate store. If the store name is not specified, the certificate is added to the ROOT system store.

Note, that dependently on your system settings, Windows may ask you whether you want to add certificate to its system store.

See also:     Remove     ListKeyContainers    

Discuss this help topic in SecureBlackbox Forum