'Declaration
<ExtensionAttribute()> Public Overloads Shared Sub ExportOwnCertificateToFile( _ ByVal application As IEasyUAClientServerApplication, _ ByVal filePath As String, _ ByVal pkiFileFormat As PkiFileFormat, _ ByVal newPrivateKeyPassword As String _ )
'Usage
Dim application As IEasyUAClientServerApplication Dim filePath As String Dim pkiFileFormat As PkiFileFormat Dim newPrivateKeyPassword As String IEasyUAClientServerApplicationExtension.ExportOwnCertificateToFile(application, filePath, pkiFileFormat, newPrivateKeyPassword)
[Extension()] public static void ExportOwnCertificateToFile( IEasyUAClientServerApplication application, string filePath, PkiFileFormat pkiFileFormat, string newPrivateKeyPassword )
[Extension()] public: static void ExportOwnCertificateToFile( IEasyUAClientServerApplication^ application, String^ filePath, PkiFileFormat pkiFileFormat, String^ newPrivateKeyPassword )
Parameters
- application
- The OPC UA client/server application object that will perform the operation.
In client applications, this is typically obtained by calling System.IServiceProvider.GetService(System.Type) on the OpcLabs.EasyOpc.UA.IEasyUAClient (
EasyUAClient
object) with the type of OpcLabs.EasyOpc.UA.Application.IEasyUAClientServerApplication as an argument.The value of this parameter cannot be
null
(Nothing
in Visual Basic). - filePath
- The name of the file to which the certificate will be exported.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - pkiFileFormat
- File format in which the certificate will be exported.
- newPrivateKeyPassword
- The new password needed to access the private key (optional).
The value of this parameter cannot be
null
(Nothing
in Visual Basic).