'Declaration
Protected MustOverride Sub SetOwnCertificate( _ ByVal certificateSubId As String, _ ByVal certificateTypeId As UANodeId, _ ByVal pkiCertificate As IPkiCertificate, _ ByVal privateKeyFormat As String, _ ByVal formattedPrivateKey() As Byte, _ ByVal oldPrivateKeyPassword As String, _ ByVal newPrivateKeyPassword As String, _ ByVal updateTrustedPeerCertificates As Boolean, _ ByVal allowSubjectNameRemapping As Boolean _ )
'Usage
Dim instance As AbstractEasyUAClientServerApplication Dim certificateSubId As String Dim certificateTypeId As UANodeId Dim pkiCertificate As IPkiCertificate Dim privateKeyFormat As String Dim formattedPrivateKey() As Byte Dim oldPrivateKeyPassword As String Dim newPrivateKeyPassword As String Dim updateTrustedPeerCertificates As Boolean Dim allowSubjectNameRemapping As Boolean instance.SetOwnCertificate(certificateSubId, certificateTypeId, pkiCertificate, privateKeyFormat, formattedPrivateKey, oldPrivateKeyPassword, newPrivateKeyPassword, updateTrustedPeerCertificates, allowSubjectNameRemapping)
protected abstract void SetOwnCertificate( string certificateSubId, UANodeId certificateTypeId, IPkiCertificate pkiCertificate, string privateKeyFormat, byte[] formattedPrivateKey, string oldPrivateKeyPassword, string newPrivateKeyPassword, bool updateTrustedPeerCertificates, bool allowSubjectNameRemapping )
protected: abstract void SetOwnCertificate( String^ certificateSubId, UANodeId^ certificateTypeId, IPkiCertificate^ pkiCertificate, String^ privateKeyFormat, array<byte>^ formattedPrivateKey, String^ oldPrivateKeyPassword, String^ newPrivateKeyPassword, bool updateTrustedPeerCertificates, bool allowSubjectNameRemapping )
Parameters
- certificateSubId
- The sub-id of the certificate. Normally an empty string.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - certificateTypeId
- The certificate type Id, or
null
(Nothing in Visual Basic) for certificate pack.Because the OpcLabs.EasyOpc.UA.AddressSpace.UANodeId has an implicit conversion from System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a string (representing the expanded text of the nodeId) in place of this parameter, and the corresponding OPC UA node Id will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the UANodeId Constructor(String) constructor instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - pkiCertificate
- The application's own certificate.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - privateKeyFormat
- The format of the private key.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - formattedPrivateKey
- The private key of the application's own certificate.
The value of this parameter can be
null
(Nothing
in Visual Basic). - oldPrivateKeyPassword
- Password to the certificate's current private key.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - newPrivateKeyPassword
- New password to the certificate's private key.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - updateTrustedPeerCertificates
- Determines whether the trusted peers certificate store will also be updated.
- allowSubjectNameRemapping
- Determines whether the certificate is allowed to have a subject name that is different from the requested subject name.