echo_client sample -no logner works after generate new certificate. #48789
-
Hello I'm using echo_client sample witch openssl server, DTLS1.2 TCP disabled. And when i use included certificates, everything works. But when i regenerate new ones i get error: net_sock_tls: TLS handshake error: -2700 CA
Client
Server
To make sure i tested credentials using openssl clinet -server: Openssl server: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The .der file creation looks okeyish, I did not spot any obvious error. After creation of the der files, I am assuming you copied them to relevant places in the zephyr sources so that they are taken properly into use. Could it be that some of file were not copied to correct place or were not copied using correct filename, could you recheck? cc: @rlubos |
Beta Was this translation helpful? Give feedback.
-
The certificates are ok, but there is some confusion on the actual key/certificate use I believe. Are you sure those commands actually succeedd for you? Because when I tried to reproduce your steps, the handshake indeed proceeds (because there's no
The problems I see:
I'm guessing you've provided |
Beta Was this translation helpful? Give feedback.
The certificates are ok, but there is some confusion on the actual key/certificate use I believe. Are you sure those commands actually succeedd for you? Because when I tried to reproduce your steps, the handshake indeed proceeds (because there's no
-verify_return_error
option in the client call), but the actual certificate verification failes, it can be seen in the logs: