Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.GetPrivateKey

TElCertificateRequest     See also     


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


Returns the private key for Certificate Request

Declaration

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

[VB.NET]
    Function GetPrivateKey(Out Buffer As Byte()) As Boolean
    Function GetPrivateKey(ByRef Buffer As Byte(), ByRef Size As Integer) 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)

[Java]
    boolean getPrivateKey(byte[] Buffer, TSBInteger Size);
    boolean getPrivateKey(byte[][] Buffer);

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