首页 > 其他分享 >MQTT Host name verification failure (SSL)-增加--insecure选项解决

MQTT Host name verification failure (SSL)-增加--insecure选项解决

时间:2022-10-24 16:13:25浏览次数:84  
标签:sending name -- insecure failure Client null

增加一个选项即可解决:--insecure

出问题:

mosquitto_pub -d -h 192.168.1.10 -p 1883 -t hello -m 123 --cafile ~/cacert.pem
Client null sending CONNECT
Error: host name verification failed.
OpenSSL Error[0]: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Error: Protocol error

解决:

mosquitto_pub -d -h 192.168.1.10 -p 1883 -t hello -m 123 --cafile ~/cacert.pem --insecure
Client null sending CONNECT
Client null received CONNACK (0)
Client null sending PUBLISH (d0, q0, r0, m1, 'hello', ... (3 bytes))
Client null sending DISCONNECT

参考:https://community.home-assistant.io/t/mqtt-host-name-verification-failure-ssl/337356

标签:sending,name,--,insecure,failure,Client,null
From: https://www.cnblogs.com/v5captain/p/16821756.html

相关文章

  • 616Javascript_语法_练习_99乘法表 and
    练习9*9乘法表<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>99乘法表</title><style>td{border:1pxs......
  • 狂神说Redis学习笔记
    Redis1、NoSQL概述1.1、为什么要用Nosql1、单机MySQL的年代!90年代,一个基本的网站访问量一般不会太大,单个数据库完全足够!那个时候,更多的去使用静态网页Html~服......
  • Python基础之Python注释,变量
    注释在Python中有两种形式:单⾏注释与多行注释☆单⾏注释单⾏注释只能注释一行内容,基本语法:#注释内容☆多⾏注释多行注释可以注释多行内容,常用于代码块......
  • nexus 部署和使用
    1、部署Nexus官网下载地址https://www.sonatype.com/download-oss-sonatype需要JAVA1.8版本创建部署目录并解压mkdir/usr/local/nexustar-xvfnexus-3.25.1-04-un......
  • aria2c指定文件名批量下载
    https://segmentfault.com/a/1190000041520852按这个格式,保存到一个文件“下载链接文件.txt”点击查看代码https://***1.mp4https://***2.mp4...下载命令为:aria2c......
  • Apache Struts2远程代码执行【S2-001】
    Struts2Struts2是一个基于MVC设计模式的Web应用框架,它本质上相当于一个servlet,在MVC设计模式中,Struts2作为控制器(Controller)来建立模型与视图的数据交互。Struts2是St......
  • 心跳机制解决lettuce连接池断连问题
    心跳机制Springboot项目中Redis用lettuce连接池,如果长时间不用redis的话,就会断连,可以通过用netty的心跳机制来维持连接。心跳是在TCP长连接中,客户端和服务端定时向对方......
  • Debug和Release之本质区别
    Debug 和 Release 编译方式的本质区别    Debug 通常称为调试版本,它包含调试信息,并且不作任何优化,便于程序员调试程序。Release 称为发布版本,它往往是进行了各种......
  • 负载均衡环境下缓存处理
    深入学习EnterpriseLibraryfor.NETFramework2.0的Cache机制——分析篇,这篇文章介绍了很多Caching方面的内容,我就不详细说了,我这里主要说一个最近......
  • MAT 专题
    ​​http://smallnetvisitor.iteye.com/blog/1826434​​运行user任务管理器查看到的pid号:基于jmap导出的堆信息:jmap-dump:live,format=b,file=dump.binpid使用jmap来抓......