Discuss this help topic in SecureBlackbox Forum


TElCertificateRequest     See also     

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

Saves the private key for Certificate Request to the buffer.


    bool SaveKeyToBuffer(out byte[] Buffer);
    bool SaveKeyToBuffer(ref byte[] Buffer, ref int Size);

    Function SaveKeyToBuffer(Out Buffer As Byte()) As Boolean
    Function SaveKeyToBuffer(ByRef Buffer As Byte(), ByRef Size As Integer) As Boolean

    function SaveKeyToBuffer(Buffer : pointer; var Size : integer) : boolean;

    bool SaveKeyToBuffer(void * Buffer, int32_t &Size);

    bool SaveKeyToBuffer(TSBPointer|array of byte|string|NULL $Buffer, integer &$Size)

    boolean saveKeyToBuffer(byte[][] Buffer);
    boolean saveKeyToBuffer(byte[] Buffer, TSBInteger Size);


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

Return value

    True on success.
    False otherwise.


    Use this method to obtain the private key from Certificate Request and save it to the buffer. 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:     SaveKeyToBuffer     GetPrivateKey     GetRSAParams     GetDSAParams    

Discuss this help topic in SecureBlackbox Forum