Closed LongZoz closed 7 months ago
I further found some problems in the connection between my client and the server. First, I used prosys opcua software as the server. After the client ran, the server trusted the client, but the client did not generate the certificate of trusting the server (the trust server was selected in the code). The second is simple-server as a server, server.conf:trust_client_certs: true: In this case, the server trusts the client. After the client runs, the server correctly generates the certificate of the trusted client. However, the client has a problem and the generated server certificate is in both the trusted path and the rejected path. prosys server : simple-server: I don't know how to solve this problem. I hope you can help me @locka99
My client key certificate access problem has been solved, I found that the group of files simple-client/identity/sample-x509.der can be successfully connected under pki. Finally, it is found that the.der file generated by the client needs to be placed under simple-server/user on the server, which is probably because I am not very clear about the mechanism of opcua certificate
The server I use: The prosys opc ua simulation server and the simple-server of the code can establish the server normally, and the client can connect to the server and read and write data normally using anonymous login and account and password login. Now I want to verify the certificate key login, but I find that there are always problems. I hope I can get help. The simple-server of the code uses the default server.conf. The server configuration of the upper computer software is as follows:
I used the client to connect to the two servers respectively, but failed, respectively reported the following error: Software Server: “ERROR opcua::client::client Got an error while creating the default session - BadTimeout” Code server: ‘ERROR opcua::client::session::session session:2 Server's certificate was rejected ERROR opcua::client::client Got an error while creating the default session - BadSecurityChecksFailed’
This is my client code: