Hi,
I am having real issues connecting to my modem via https with a self signed cert. I had it working and after rebooting my pc I have never got it back again. If I complie and run your client cli example its fine. If I substitute the web page with the router page its fails (even though the previous day it worked!) I dont know how to begin even troubleshooting this.
If i run from the cli curl -X POST
https://192.168.10.1/api/login -k -H "Content-Type: application/json" -d '{"username": "***", "password": "***"}'
it works every time.
This test is running on Solus Linux, the application once complete and working will be on Debian 12
this is the output from your example application
Using OpenSSL 3.3.5 30 Sep 2025, OpenSSLDir: /etc/ssl
Link Model: Dynamic linking at run time
LibCrypto:
LibSSL:
Getting
https://192.168.10.1/api/login with no verification
Status Info: SSL status: "before SSL initialization"
Status Info: SSL status: "before SSL initialization"
Status Info: SSL status: "SSLv3/TLS write client hello"
Status Info: SSL status: "SSLv3/TLS write client hello"
Status Info: SSL status: "SSLv3/TLS read server hello"
Status Info: SSL status: "TLSv1.3 read encrypted extensions"
Status Info: SSL status: "SSLv3/TLS read server certificate"
Status Info: SSL status: "TLSv1.3 read server certificate verify"
Status Info: SSL status: "SSLv3/TLS read finished"
Status Info: SSL status: "SSLv3/TLS write change cipher spec"
Status Info: SSL status: "SSLv3/TLS write finished"
Status Info: SSL status: "SSL negotiation finished successfully"
Status Info: SSL status: "SSL negotiation finished successfully"
Status Info: Cipher: name = TLS_CHACHA20_POLY1305_SHA256; description = TLS_CHACHA20_POLY1305_SHA256 TLSv1.3 Kx=any Au=any Enc=CHACHA20/POLY1305(256) Mac=AEAD
; bits = 256; version = TLSv1.3;
Status Info: SSL status: "SSL negotiation finished successfully"
Status Info: SSL status: "SSL negotiation finished successfully"
Status Info: SSL status: "SSLv3/TLS read server session ticket"
Status Info: SSL status: "SSL negotiation finished successfully"
Status Info: SSL status: "SSL negotiation finished successfully"
Status Info: SSL status: "SSL negotiation finished successfully"
Status Info: SSL status: "SSLv3/TLS read server session ticket"
Status Info: SSL status: "SSL negotiation finished successfully"
Status Info: SSL status: "error"
Error: error:0A000126:SSL routines::unexpected eof while reading