OPC UA View in ScadaAdmin can’t connect in Wine 9.8

Forum Home Forums Development and Integration OPC UA View in ScadaAdmin can’t connect in Wine 9.8

Tagged: , ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #14549
    zzz
    Participant

    Can connect to remote OPC UA server in ScadaAdmin, the OPC UA configuration dialog just show an error message: “Error connecting to OPC server: \n Success”

    Adding Console.WriteLine() to ScadaComm/OpenDrivers/DrvOpcUa.View/Forms/FrmDeviceConfig.cs, only gives me this.

    ====START OF ERROR===
    System.Security.Cryptography.CryptographicException: Success.
    at System.Security.Cryptography.X509Certificates.CertificatePal.CopyWithEphem
    eralKey(CngKey cngKey)
    at System.Security.Cryptography.X509Certificates.CertificatePal.CopyWithPriva
    teKey(RSA rsa)
    at System.Security.Cryptography.X509Certificates.RSACertificateExtensions.Cop
    yWithPrivateKey(X509Certificate2 certificate, RSA privateKey)
    at Opc.Ua.Security.Certificates.CertificateBuilder.CreateForRSA()
    at Opc.Ua.Configuration.ApplicationInstance.CreateApplicationInstanceCertific
    ate(ApplicationConfiguration configuration, UInt16 keySize, UInt16 lifeTimeInMon
    ths)
    at Opc.Ua.Configuration.ApplicationInstance.CheckApplicationInstanceCertifica
    te(Boolean silent, UInt16 minimumKeySize, UInt16 lifeTimeInMonths)
    at Scada.Comm.Drivers.DrvOpcUa.OpcClientHelperBase.ConnectAsync() in scada-v6/ScadaComm/OpenDrivers/DrvOpcUa.Common/OpcClientHel
    perBase.cs:line 170
    at Scada.Comm.Drivers.DrvOpcUa.View.Forms.FrmDeviceConfig.ConnectToOpcServer(
    )
    ====END OF ERROR===

    On windows it does give Timeout error, I only have access to that subnet on my Linux box :(.
    Waiting to try wine 9.9.

    #14550
    zzz
    Participant

    DotNet version in Wine

    Host:
    Version: 8.0.2
    Architecture: x64
    Commit: 1381d5ebd2
    RID: win-x64

    #14551
    zzz
    Participant

    The System.Security.Cryptography.CryptographicException: Success behavior is not affected by setting
    Security Mode = None
    Security Policy = None

    #14554
    zzz
    Participant

    Tried to ignore Success error, nothing happens afterwards, no error, no nothing. Its not a Success as claimed. 🙁

    #14565
    Mikhail
    Moderator

    Hello,
    This is probably your pull request? Does i solve the issue?

    #14569
    zzz
    Participant

    That PR works, its just unclear to me if skipping cert check simply like that is consistent enough to not leave bugs like uninitialized sth. … since I only tested it on ScadaAdmin+dotnet8+Wine9 which is at most momentary, compared to Communicator.
    Anyway at least, if secmode is disabled as none, encryption stuff being left alone, seem logical to me.

    #14574
    zzz
    Participant

    I am afraid, I am not thinking straight by turning off encryption and configuring on wine, due to limited connectivity, though the vlans are strictly isolated and secured enough, tough I do feel that leaving PKI dependency while encryption is disabled is not reasonable.
    Please see my other new thread, compared to that, I think this issue affects less people.

    #14580
    Mikhail
    Moderator

    OK, let’s continue in this thread.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.