I've generated certificate and key files.
python create_self-signed.py c:\cert -c certName -k 2048 -u urn:SIMATIC.S7-1500.OPC-UAServer:CPU1512SP_ufficio
But when I try to launch client_connect it gives me this result. I don't understand what the problem is, can you help me?
client_connect.exe -username name -password pswplc -securityPolicy "
http://opcfoundation.org/UA/SecurityPolicy#Basic256" -securityMode 2 -cert C:\cert\cerName_cert.der -key C:\cert\cerName_key.der opc.tcp://
192.168.11.240:4840[2023-03-17 16:42:39.090 (UTC+0100)] warn/userland AcceptAll Certificate Verification. Any remote certificate will be accepted.
[2023-03-17 16:42:39.091 (UTC+0100)] info/securitypolicy The Basic128Rsa15 security policy with openssl is added.
[2023-03-17 16:42:39.093 (UTC+0100)] info/securitypolicy The basic256 security policy with openssl is added.
[2023-03-17 16:42:39.096 (UTC+0100)] info/securitypolicy The basic256sha256 security policy with openssl is added.
[2023-03-17 16:42:39.097 (UTC+0100)] info/securitypolicy The Aes128Sha256RsaOaep security policy with openssl is added.
[2023-03-17 16:42:39.097 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#None[2023-03-17 16:42:39.098 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15[2023-03-17 16:42:39.098 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Basic256[2023-03-17 16:42:39.098 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256[2023-03-17 16:42:39.098 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Aes128_Sha256_RsaOaep[2023-03-17 16:42:39.114 (UTC+0100)] info/channel Connection 344 | SecureChannel 2951111532 | SecureChannel opened with SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#None and a revised lifetime of 600.00s
[2023-03-17 16:42:39.114 (UTC+0100)] info/client Client Status: ChannelState: Open, SessionState: Closed, ConnectStatus: Good
[2023-03-17 16:42:39.121 (UTC+0100)] info/client The initially defined EndpointURL opc.tcp://192.168.11.240:4840is valid for the server
[2023-03-17 16:42:39.132 (UTC+0100)] info/client Selected endpoint 0 in URL opc.tcp://
192.168.11.240:4840 with SecurityMode Sign and SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Basic256[2023-03-17 16:42:39.132 (UTC+0100)] info/client Selected UserTokenPolicy UserName_Basic128Rsa15_Token with UserTokenType UserName and SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15[2023-03-17 16:42:39.132 (UTC+0100)] info/client Client Status: ChannelState: Closed, SessionState: Closed, ConnectStatus: Good
[2023-03-17 16:42:39.132 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#None[2023-03-17 16:42:39.133 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15[2023-03-17 16:42:39.133 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Basic256[2023-03-17 16:42:39.134 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256[2023-03-17 16:42:39.134 (UTC+0100)] warn/client The configured ApplicationURI does not match the URI specified in the certificate for the SecurityPolicy
http://opcfoundation.org/UA/SecurityPolicy#Aes128_Sha256_RsaOaep[2023-03-17 16:42:39.155 (UTC+0100)] info/securitypolicy The basic256 security policy channel with openssl is created.
[2023-03-17 16:42:40.827 (UTC+0100)] warn/channel Connection 344 | SecureChannel 0 | Receiving the response failed with StatusCode BadCertificateUntrusted
[2023-03-17 16:42:40.827 (UTC+0100)] info/securitypolicy The basic256 security policy channel with openssl is deleted.
[2023-03-17 16:42:40.828 (UTC+0100)] info/client Client Status: ChannelState: Closed, SessionState: Closed, ConnectStatus: BadConnectionClosed
[2023-03-17 16:42:40.828 (UTC+0100)] info/userland Could not connect