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

how to bypass ssl verification #2161

Closed
CupidChow opened this issue Feb 18, 2025 · 17 comments
Closed

how to bypass ssl verification #2161

CupidChow opened this issue Feb 18, 2025 · 17 comments
Assignees
Labels

Comments

@CupidChow
Copy link

now I have a problem when playing https:xxxxxxxx.m3u8.

before I could play these kinda videos successfully,and I didn't change any code, and also for the url,I'm sure they are the https:xxx all the time.
but I don't know why all the videos can't play .
this error
Caused by: androidx.media3.datasource.HttpDataSource$HttpDataSourceException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

Image
@FongMi
Copy link

FongMi commented Feb 19, 2025

Are you using org.conscrypt:conscrypt-android:2.5.2 ?

@CupidChow
Copy link
Author

Are you using org.conscrypt:conscrypt-android:2.5.2 ?

Hello,FongMi:
thanks for your reply,I checked and didn't find it in my library.

Image

what is that library,,should I use it or not?

@FongMi
Copy link

FongMi commented Feb 19, 2025

Maybe you need provide the https url

@CupidChow
Copy link
Author

Maybe you need provide the https url

https://europe.olemovienews.com/ts3/20241023/HroBkkyb/mp4/HroBkkyb.mp4/index-v1-a1.m3u8,this one,I can play on chrome directly,

@FongMi
Copy link

FongMi commented Feb 19, 2025

It's seem no problem.

Image

@CupidChow
Copy link
Author

what's your exoplayer sdk version,mime is 1.5.1.also,did you add some extra config for the player?

@FongMi
Copy link

FongMi commented Feb 19, 2025

Maybe your okhttp need to bypass ssl issue.

@CupidChow
Copy link
Author

I think so,this is handled by exoplayer,right? actually I did

Image

like this,and I will get another problem,like

@CupidChow
Copy link
Author

Maybe your okhttp need to bypass ssl issue.

this is so wired.that makes no sense,I don't know how to do this.

@CupidChow
Copy link
Author

Maybe your okhttp need to bypass ssl issue.

can you show me the code of your configuration of exolayer for the data source parts?

@CupidChow
Copy link
Author

Maybe your okhttp need to bypass ssl issue.

看你的信息,貌似你来自台湾,应该可以说中文吧,可以添加你社交账号吗,能帮忙看下这个问题吗

@FongMi
Copy link

FongMi commented Feb 19, 2025

@linhai326
Copy link

@CupidChow the device you tested might not support the SSL on your media server.
Checking its SSL, shows it is from DigiCert.
https://www.sslshopper.com/ssl-checker.html#hostname=https://europe.olemovienews.com
You can run a CERT check app on your device and see if it supports this one.
most likely it doens't.

@CupidChow
Copy link
Author

@CupidChow the device you tested might not support the SSL on your media server. Checking its SSL, shows it is from DigiCert. https://www.sslshopper.com/ssl-checker.html#hostname=https://europe.olemovienews.com You can run a CERT check app on your device and see if it supports this one. most likely it doens't.
Thanks for your reply, linhai,I will try.

@CupidChow
Copy link
Author

CupidChow commented Feb 19, 2025

Image I found the reason .that I got "no available extractor......",since I didn't pass the second paramters, thanks for your help!!! @FongMi @linhai326

@tonihei
Copy link
Collaborator

tonihei commented Feb 21, 2025

I don't think I can help with the SSL question specifically because it's likely a network or certificate issue. The follow-up question for the missing extractors seems to be resolved now as well?

@tonihei tonihei self-assigned this Feb 21, 2025
@CupidChow
Copy link
Author

no problem,now I already solved this problem,

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

No branches or pull requests

4 participants