Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.GetPrivateKey

TElCertificateRequest     See also     


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


Returns the private key for Certificate Request

Declaration

[C#/Java]
    bool GetPrivateKey(ref byte[] Buffer, ref int Size);
    bool GetPrivateKey(out byte[] Buffer);

[VB.NET]
    Function GetPrivateKey(ByRef Buffer As Byte(), ByRef Size As Integer) As Boolean
    Function GetPrivateKey(ByRef Buffer As Byte()) As Boolean

[Pascal]
    function GetPrivateKey( Buffer : pointer; var Size : integer);

[C++]
    bool GetPrivateKey(void * Buffer, int32_t &Size);

[PHP]
    bool GetPrivateKey(TSBPointer|array of byte|string|NULL $Buffer, integer &$Size)

Parameters

  • Buffer - pointer to buffer where to put the private key
  • Size - the length of private key in bytes

Return value

    True on success.
    False otherwise.

Description

    Use this method to obtain the private key from Certificate Request. Note, that private key is available only for just generated requests. If the request is loaded from file, its private key is inaccessible.

See also:     GetRSAParams     GetDSAParams    

Discuss this help topic in SecureBlackbox Forum