Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何关闭ssl校验,或者忽略ssl证书错误 #146

Open
yujinguo0930 opened this issue Oct 13, 2023 · 3 comments
Open

如何关闭ssl校验,或者忽略ssl证书错误 #146

yujinguo0930 opened this issue Oct 13, 2023 · 3 comments

Comments

@yujinguo0930
Copy link

yujinguo0930 commented Oct 13, 2023

使用mqttx的时候,有个配置,ssl 安全,关闭后可以忽略证书错误,请问在jmeter插件中可以配置吗,或者类似ws的Ignore SSL certificate errors
已经确定证书中CN有问题,会导致无法校验通过,从而无法建连

错误如下:
Caused by: com.hivemq.client.mqtt.exceptions.ConnectionFailedException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching xxx.com found
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching xxx.com found
image

@chongyuanyin
Copy link
Member

please try without checking 'Dual SSL authentication'

@yujinguo0930
Copy link
Author

please try without checking 'Dual SSL authentication'

Thank you for answering,but if i remove this check box and the connection will report an error。Another question, if I turn this off, how can I bring the certificate to the server

image

@chongyuanyin
Copy link
Member

chongyuanyin commented Jan 2, 2024

The plugin actually trusts all certificates (for performance purpose) from server side.
If 'Dual SSL authentication' is not checked, the plugin will not send the certificate to the server. So if the broker side requires a certificate from client, it fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants