I noticed the following extra debugging prints is being sent with the server hello message unexpectedly right after the tls session is established:
libnetconf DEBUG: Received message (session ): process 18032: arguments to dbus_message_iter_append_basic() were incorrect, assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file ../../dbus/dbus-message.c line 2535.
<server hello follows...>
Then netopeer-cli aborts with the following msg:
libnetconf ERROR: Invalid XML data received.
libnetconf ERROR: Malformed message received, closing the session .
libnetconf DEBUG: Writing message (session ): <?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<close-session/>
</rpc>
libnetconf ERROR: Reading from the TLS session failed (5)
libnetconf ERROR: Malformed message received, closing the session .
Because I am implementing TLS support in our GUI client NETCONFc, and
if I manually strip the extra debugging msg, my implementation can then talk
to the netopeer server successfully over TLS.
The netoppeer server version I am using is:
xiangli@ubuntu:~/ssl_test$ netopeer-server -V
netopeer-server version: 0.6.0
Can you check if this is a bug in netoppeer server?
-Xiang