Error Messages:
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
Solution:
Add an option: –insecure
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
Reference:
https://community.home-assistant.io/t/mqtt-host-name-verification-failure-ssl/337356
Read More:
- Solve host key verification failed [valid]
- server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
- FreeRDP installation configuration (error message: SSL_read: Failure in SSL library (protocol error?))
- git clone Error: “server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLf…
- Spark login error unable to verify certificate and certificate host name verification failed
- Host key verification failed. fatal: Could not read from remote repository.
- Solution to failure of SSL configuration in synergy
- Jenkins SVN error Server SSL certificate verification failed: issuer is not trusted
- svn: E230001: Server SSL certificate verification failed: certificate issued
- Idea svn connection https error report: E230001: Server SSL certificate verification failed: certificate issued
- SELinux solution to Apache SSL failure
- How to Fix server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
- Solutions to the failure of importing Python 3.7 SSL module
- The problem that ActiveMQ and rabbitmq can’t connect to the mqtt server
- How to Use paho.mqtt.cpp
- SSL handshake failed: SSL error: illegal key usage detected in the certificate
- Python error open SSL.SSL.SysCallError :(-1,‘Unexpected EOF‘)
- macos LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- wget OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version