Opc.Ua.Security.Certificates
AddExtension Method (ICertificateBuilderConfig)



Opc.Ua.Security.Certificates Namespace > ICertificateBuilderConfig Interface : AddExtension Method
The extension to add
Add an extension to the certificate in addition to the default extensions.
Syntax
'Declaration
 
Function AddExtension( _
   ByVal extension As X509Extension _
) As ICertificateBuilder
'Usage
 
Dim instance As ICertificateBuilderConfig
Dim extension As X509Extension
Dim value As ICertificateBuilder
 
value = instance.AddExtension(extension)

Parameters

extension
The extension to add
Remarks
By default the following X509 extensions are added to a certificate, some depending on certificate type: CA/SubCA/OPC UA application: X509BasicConstraintsExtension X509SubjectKeyIdentifierExtension X509AuthorityKeyIdentifierExtension X509KeyUsageExtension OPC UA application: X509SubjectAltNameExtension X509EnhancedKeyUsageExtension Adding a default extension to the list overrides the default value of the extensions. Adding an extension with a already existing Oid overrides the existing extension in the list.
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

ICertificateBuilderConfig Interface
ICertificateBuilderConfig Members