client fixes

This commit is contained in:
Martin Regen
2017-10-19 20:54:31 +02:00
parent 230f424810
commit ecc1fac4e6
2 changed files with 6 additions and 1 deletions
@@ -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();