Discuss this help topic in SecureBlackbox Forum

TElFileCertStorage.Add

TElFileCertStorage     See also     


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


Adds the certificate to storage

Declaration

[C#/Java]
    void Add(TElX509Certificate X509Certificate, bool CopyPrivateKey);

[VB.NET]
    Sub Add(ByVal X509Certificate As TElX509Certificate, ByVal CopyPrivateKey As Boolean)

[Pascal]
    procedure Add(X509Certificate: TElX509Certificate; CopyPrivateKey: boolean = true);

[C++]
    void Add(TElX509Certificate &X509Certificate, bool CopyPrivateKey);
    void Add(TElX509Certificate *X509Certificate, bool CopyPrivateKey);

[PHP]
    void Add(TElX509Certificate $X509Certificate, bool $CopyPrivateKey)

Parameters

  • X509Certificate - Certificate object, initialized by LoadFromBuffer method
  • CopyPrivateKey - specifies if certificate private key will be also added.
    Default value is True

Description

    Use this method to add certificate to certificate store.

Note, that adding certificate using this method will not change the initial file, specified by FileName property. To save modified file, call SaveToFile method.

See also:     Remove    

Discuss this help topic in SecureBlackbox Forum