(一)开源代码路径:https://github.com/CESNET/netopeer2
(二)配置步骤如下:
1、将开源代码example_configuration目录下的tls_listen.xml, tls_truststore.xml,tls_keystore.xml文件导入running数据库。
请严格按照配置顺序(数据之间存在依赖)如下:
sysrepocfg --import=tls_keystore.xml --format=xml --datastore=running --module=ietf-keystore
sysrepocfg --import=tls_truststore.xml --format=xml --datastore=running --module=ietf-truststore
Sysrepocfg --import=tls_listen.xml --format=xml --datastore=running --module=ietf-netconf-server
2、运行服务端执行:
netopeer2-server -d -v 2
3、运行客户端netopeer2-cli, 进入客户端交互界面执行命令如下:(默认host:localhost)
connect --tls --cert ./example_configuration/tls_certs/client.crt
--key ./example_configuration/tls_certs/client.key
--trusted ./example_configuration/tls_certs/ca.pem
4、连接成功,效果如下: