OPC UA Certificate is not valid

13 ビュー (過去 30 日間)
Marc Thode
Marc Thode 2021 年 8 月 2 日
回答済み: Srijith Vijay 2024 年 3 月 3 日
Greetings,
im working on my bachelor thesis and im trying to connect to an injection molding machine. He gives me the error
"Error using opc.ua.Client/connect (line 573) The certificate provided as a parameter is not valid."
When im using UaExpert a window opens titled "Cetificate Validations" Error "BadCertificateUntrusted" and i can press "Trust Server Certificate" and its connected.
I hope you can help me i really want to use Matlab.
opcuaserverinfo('xxxx:xxx')
OPCUA_S_N = opcua('xxxx',xxx)
OPCUA_S_B = 'xxx'
OPCUA_S_P = 'xxx'
setSecurityModel(OPCUA_S_N,'None','None')
connect(OPCUA_S_N,OPCUA_S_B,OPCUA_S_P)

回答 (4 件)

Marc Thode
Marc Thode 2021 年 8 月 2 日
ans =
Security Information:
BestMessageSecurity: None
BestChannelSecurity: None
UserTokenTypes: {'Username'}
OPCUA_S_N =
OPC UA Client:
Connection Information:
Timeout: 10
Status: 'Disconnected'
ServerState: '<Not connected>'
Security Information:
MessageSecurityMode: None
ChannelSecurityPolicy: None
Endpoints: [1×1 opc.ua.EndpointDescription]

John Reilly
John Reilly 2022 年 11 月 2 日
Wondering did you ever manage to solve this problem? I appear to have same issue. If I find a solution I'll post it here.

Pulak
Pulak 2024 年 1 月 5 日
Have any of you figured out how to resolve this error ???

Srijith Vijay
Srijith Vijay 2024 年 3 月 3 日
Hello Marc,
It appears that the issue you're encountering stems from the OPC UA server not recognizing the MATLAB OPC UA Client Application Instance Certificate as trusted. To resolve this, you can mark the certificate as "Trusted" directly through the server's user interface, should it offer one.
In cases where the server lacks a UI option for this purpose, you can manually transfer the certificate from the server's "rejected" certificate folder to the "certs"/"trusted" folder within the server's certificate store. This manual step should help in establishing trust between the server and the MATLAB client

カテゴリ

Help Center および File ExchangeUnified Architecture についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by