mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-24 11:01:55 +08:00
client fixes
This commit is contained in:
@@ -182,7 +182,7 @@ namespace Opc.Ua.GdsClient
|
||||
if (m_certificate != null &&
|
||||
m_certificate.HasPrivateKey)
|
||||
{
|
||||
m_certificate = await id.LoadPrivateKey(string.Empty);
|
||||
m_certificate = await id.LoadPrivateKey(m_certificatePassword);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -314,6 +314,11 @@ namespace Opc.Ua.Gds
|
||||
/// <exception cref="System.InvalidOperationException">Connection to server is not active.</exception>
|
||||
public string[] GetSupportedKeyFormats()
|
||||
{
|
||||
if (AdminCredentials == null || Endpoint == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!IsConnected)
|
||||
{
|
||||
Connect();
|
||||
|
||||
Reference in New Issue
Block a user