emqx / emqx/MQTT-Client-Examples

Android Mutual Authentication Exception Failure

Open
#143 0 comments 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

`java.lang.ClassCastException: org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to org.bouncycastle.openssl.PEMKeyPair
2024-05-15 17:17:40.484 31070-31070 System.err io.emqx.mqtt W at io.emqx.mqtt.SSLUtils.getSocketFactory(SSLUtils.java:70)
2024-05-15 17:17:40.484 31070-31070 System.err io.emqx.mqtt W at io.emqx.mqtt.Connection.getMqttConnectOptions(Connection.java:54)
2024-05-15 17:17:40.484 31070-31070 System.err io.emqx.mqtt W at io.emqx.mqtt.MainActivity.connect(MainActivity.java:48)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at io.emqx.mqtt.ConnectionFragment$1.onClick(ConnectionFragment.java:53)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at android.view.View.performClick(View.java:7201)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at android.view.View.performClickInternal(View.java:7170)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at android.view.View.access$3500(View.java:806)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at android.view.View$PerformClick.run(View.java:27562)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at android.os.Handler.handleCallback(Handler.java:883)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at android.os.Handler.dispatchMessage(Handler.java:100)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at android.os.Looper.loop(Looper.java:214)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at android.app.ActivityThread.main(ActivityThread.java:7682)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at java.lang.reflect.Method.invoke(Native Method)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516)
2024-05-15 17:17:40.485 31070-31070 System.err io.emqx.mqtt W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)`

---
*This issue was automatically translated from Chinese.*

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.