Discuss this help topic in SecureBlackbox Forum

TElPGPKeyring.AddX509Certificate

TElPGPKeyring     See also     


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


Adds a public key from the X.509 certificate to the key ring.

Declaration

[C#/Java]
    int AddX509Certificate(TElX509Certificate Certificate);

[VB.NET]
    Function AddX509Certificate(ByVal Certificate As TElX509Certificate) As Integer

[Pascal]
    function AddX509Certificate(Certificate : TElX509Certificate) : integer;

[C++]
    int32_t AddX509Certificate(TElX509Certificate &Certificate);
    int32_t AddX509Certificate(TElX509Certificate *Certificate);

[PHP]
    integer AddX509Certificate(TElX509Certificate $Certificate)

Parameters

  • Certificate - certificate to be added.

Return value

    Index of the newly added public key.

Description

    Use this method when you need to add new public key from the certificate to key ring. If the certificate contains secret key it will be added as well. E-mail address from the certificate will be used as UserID. If there is no e-mail address than commonName is used, if there is no commonName also organizationName will be assigned to UserID.
    If such key is already present in the keyring only new information will be added.

See also:     AddSecretKey     ExportTo    

Discuss this help topic in SecureBlackbox Forum