Forum Home › Forums › Development and Integration › OPC UA View in ScadaAdmin can’t connect in Wine 9.8
- This topic has 7 replies, 2 voices, and was last updated 4 months, 1 week ago by Mikhail.
-
AuthorPosts
-
May 29, 2024 at 2:36 am #14549zzzParticipant
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.May 29, 2024 at 2:41 am #14550zzzParticipantDotNet version in Wine
Host:
Version: 8.0.2
Architecture: x64
Commit: 1381d5ebd2
RID: win-x64May 29, 2024 at 3:03 am #14551zzzParticipantThe
System.Security.Cryptography.CryptographicException: Success
behavior is not affected by setting
Security Mode
= None
Security Policy
= NoneMay 29, 2024 at 5:15 am #14554zzzParticipantTried to ignore
Success
error, nothing happens afterwards, no error, no nothing. Its not a Success as claimed. 🙁May 29, 2024 at 11:01 am #14565May 29, 2024 at 2:27 pm #14569zzzParticipantThat 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.May 30, 2024 at 1:51 am #14574zzzParticipantI 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.May 30, 2024 at 9:03 am #14580 -
AuthorPosts
- You must be logged in to reply to this topic.