java.security.cert.CertificateException #1675
replicant1
started this conversation in
General
Replies: 2 comments 4 replies
-
Hello, The problem is related with TLS certificates. You can try this: class AcceptAllCertificates: X509TrustManager {
override fun checkClientTrusted(chain: Array<out X509Certificate>?, authType: String?) {}
override fun checkServerTrusted(chain: Array<out X509Certificate>?, authType: String?) {}
override fun getAcceptedIssuers(): Array<X509Certificate>? = null
}
//set certificate to the stream
getStreamClient().addCertificates(AcceptAllCertificates()) Ideally you should create and set your own certificate instead of skip all certificates. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello, I recommend you create a certificate and set it to the library. Similar to this: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Pedro,
I recently upgraded from RootEncoder
2.4.5
to2.5.5
. I suddenly found that I can no longer stream RTMP and get the following error in logcat whenever I try:Have you got any idea what might've changed between
2.4.5
and2.5.5
that could've caused this? A little googling suggests that very old versions ofktor
used to have this problem:Link
But I think you're using ktor
2.3.13
, so this probably doesn't apply?Is there anything I can do from my own code to work around it? At the moment I'm calling
RtmpCamera1.startStream("rtmps://redacted_url.com:8443/show/redacted_key")
and the error above shortly follows.I would be most grateful for any suggestions you can offer.
Thanks,
Rod Bailey
BTW: The bug first appears in 2.5.2 where the release notes say "Replace java.io sockets to ktor sockets". 2.5.1 works fine.
Beta Was this translation helpful? Give feedback.
All reactions