emqx / emqx/MQTT-Client-Examples

use the MqttTwoWayTlsSample.java following error

Open
#125 1 comment 0 reactions 1 assignee Claimed by @Zhiw View on GitHub
Dominant language
Kotlin
Stars
1k
Forks
718
PR merge metrics
No merged PRs in 30d

Description

i use the MqttTwoWayTlsSample.java and emqx owner ca in directory : etc/certs , but the following error occurred。
when i use the mqtt.fx tool ,is ok
the emqx version is 5.0.26。
Caused by: java.security.cert.CertificateException: No subject alternative names present
at sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:150)
at sun.security.util.HostnameChecker.match(HostnameChecker.java:99)
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:441)
at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:409)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:228)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:128)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:636)

![image](https://github.com/emqx/MQTT-Client-Examples/assets/5378727/2c2a3779-4fff-4f3c-9113-17bbe0732cdb)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.