EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElCertificateRequest.GetPrivateKey

TElCertificateRequest     See also    


 

Returns the private key for Certificate Request

 
 

Declaration

[C#]
    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);

[VB6]
    Sub IElCertificateRequestX.GetPrivateKey(Buffer As Byte())

[ActiveX]
    HRESULT _stdcall IElCertificateRequestX.etPrivateKey([out] VARIANT * Buffer );

[DLL]
    __stdcall BOOL SBCertificateRequestGetPrivateKey(HANDLE hRequest, void* pBuffer, int* nSize);
 
 

Parameters

  • [DLL]hRequest - handle to the TElCertificateRequest object that was returned by Constructor
  • Buffer (pBuffer) - pointer to buffer where to put the private key
  • Size (nSize) - 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    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation