netopeer2采用TLS数据传输配置步骤

本文档详细介绍了如何配置netopeer2以实现TLS连接。首先,需将ietf-keystore、ietf-truststore和ietf-netconf-server模块的XML配置文件导入running数据库。然后,启动netopeer2-server服务。最后,在netopeer2-cli客户端中通过指定证书、密钥和信任文件进行TLS连接。按顺序执行这些步骤,确保连接成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

(一)开源代码路径: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、连接成功,效果如下:

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值