SSL Server
Posted: Thu Jun 15, 2023 2:47 pm
I've implemented HTTPS on a Mod5441X and a NANO using the self-signed cert and key, and it all works. Now I would like to be able to make a secure connection without a webpage. And it seems like example program sslserver does what I'm looking for. It Listens for a SSL connection request, accepts the connection, reads data from the socket and prints it.
So I added that same mechanism to my Mod5441X app. I used openssl to make the connection, using the same syntax in the example app, but it appears that it didn't work. Lots of stuff was output on the terminal and I don't understand all of it.
Some of the output is:
The 3-lines after "CONNECTED" repeats 3-times.
Then it prints out the server certificate, followed by:
and then a bunch more stuff.
Was there something else I needed to do?
So I added that same mechanism to my Mod5441X app. I used openssl to make the connection, using the same syntax in the example app, but it appears that it didn't work. Lots of stuff was output on the terminal and I don't understand all of it.
Code: Select all
openssl s_client -tls1_2 -connect 10.250.5.129:52311
The 3-lines after "CONNECTED" repeats 3-times.
Code: Select all
CONNECTED(00000158)
depth=0 c = US, ST = California, L = Santa Clara, O = Comtech_CA, CN = 10.250.5.129
verify error:num=20:unable to get local issuer certificate
verify return:1
Code: Select all
No client certificate CA name sent
Peer signing digest: SHA256
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 928 bytes and written 287 bytes
Verification error: unable to verify the first certificate
Was there something else I needed to do?