EasyUA Reference
Load Method
See Also  Send Feedback
Opc.Ua.Core.Net4 Assembly > Opc.Ua Namespace > CertificateFactory Class : Load Method

certificate
The certificate to load.
ensurePrivateKeyAccessible
If true a key conatiner is created for a certificate that must be deleted by calling Cleanup.

Glossary Item Box

Loads the cached version of a certificate.

Syntax

Visual Basic (Usage)Copy Code
Dim certificate As X509Certificate2
Dim ensurePrivateKeyAccessible As Boolean
Dim value As X509Certificate2
 
value = CertificateFactory.Load(certificate, ensurePrivateKeyAccessible)

Parameters

certificate
The certificate to load.
ensurePrivateKeyAccessible
If true a key conatiner is created for a certificate that must be deleted by calling Cleanup.

Return Value

The cached certificate.

Remarks

This function is necessary because all private keys used for cryptography operations must be in a key conatiner. Private keys stored in a PFX file have no key conatiner by default.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.