'Declaration
<ExtensionAttribute()> Public Overloads Shared Sub ExportOwnCertificateToFile( _ ByVal application As IEasyUAClientServerApplication, _ ByVal filePath As String, _ ByVal pkiFileFormat As PkiFileFormat, _ ByVal withPrivateKey As Boolean _ )
'Usage
Dim application As IEasyUAClientServerApplication Dim filePath As String Dim pkiFileFormat As PkiFileFormat Dim withPrivateKey As Boolean IEasyUAClientServerApplicationExtension.ExportOwnCertificateToFile(application, filePath, pkiFileFormat, withPrivateKey)
[Extension()] public static void ExportOwnCertificateToFile( IEasyUAClientServerApplication application, string filePath, PkiFileFormat pkiFileFormat, bool withPrivateKey )
[Extension()] public: static void ExportOwnCertificateToFile( IEasyUAClientServerApplication^ application, String^ filePath, PkiFileFormat pkiFileFormat, bool withPrivateKey )
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.
- withPrivateKey
- Determines whether the private key will be exported with the certificate.