Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.SaveKeyToBuffer

TElCertificateRequest     See also     


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


Saves the private key for Certificate Request to the buffer.

Declaration

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

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

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

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

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

Parameters

  • 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.

Description

    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