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

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

 

  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值