Opc.Ua.Core
LoadPrivateKey Method (DirectoryCertificateStore)



Opc.Ua Namespace > DirectoryCertificateStore Class : LoadPrivateKey Method
Loads the private key from a PFX/PEM file in the certificate store.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(Opc.Ua.DirectoryCertificateStore/d__35)> 
Public Function LoadPrivateKey( _ 
   ByVal thumbprint As String, _ 
   ByVal subjectName As String, _ 
   ByVal password As String _ 
) As Task(Of X509Certificate2)
'Usage
 
Dim instance As DirectoryCertificateStore
Dim thumbprint As String
Dim subjectName As String
Dim password As String
Dim value As Task(Of X509Certificate2)
 
value = instance.LoadPrivateKey(thumbprint, subjectName, password)
[AsyncStateMachine(Opc.Ua.DirectoryCertificateStore/d__35)] 
public Task<X509Certificate2> LoadPrivateKey( 
   string thumbprint, 
   string subjectName, 
   string password 
)
[AsyncStateMachine(Opc.Ua.DirectoryCertificateStore/d__35)] 
public: 
Task<X509Certificate2^>^ LoadPrivateKey( 
   String^ thumbprint, 
   String^ subjectName, 
   String^ password 
) 

Parameters

thumbprint
subjectName
password
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DirectoryCertificateStore Class
DirectoryCertificateStore Members