Certificate verification failure: The certificate is NOT trusted. The certificate issuer is unknown
Cannot play video link using libvlc because the certificate is not trusted. How could I bypass this issue? As there are times videos/links are provided by a self-signed certificate or it is expired.
Description
Expected behavior
Actual behavior
Steps to reproduce
- Pass URL that does not have a properly signed certificate
Screenshot / video
The screenshot is not applicable in this case but Here is the debug log portion that shows the error.
2021-09-30 12:21:08.591 9436-9524/com.example.cinetvhub D/VLC: [ddb563b0/2534] libvlc stream: looking for access module matching "https": 25 candidates
2021-09-30 12:21:08.591 9436-9524/com.example.cinetvhub D/VLC: [dd9272d0/2534] libvlc tls client: looking for tls client module matching "any": 1 candidates
2021-09-30 12:21:08.591 9436-9524/com.example.cinetvhub D/VLC: [dd9272d0/2534] libvlc tls client: using GnuTLS version 3.6.15
2021-09-30 12:21:08.591 9436-9524/com.example.cinetvhub D/VLC: [dd9272d0/2534] libvlc tls client: using tls client module "gnutls"
2021-09-30 12:21:08.591 9436-9524/com.example.cinetvhub D/VLC: [dd9272d0/2534] libvlc tls client: resolving 8sio2e.debrid.it ...
2021-09-30 12:21:08.819 9436-9436/com.example.cinetvhub I/System.out: buffering
2021-09-30 12:21:09.067 9436-9524/com.example.cinetvhub D/VLC: [dd9272d0/2534] libvlc tls client: TLS handshake: Resource temporarily unavailable, try again.
2021-09-30 12:21:09.167 9436-9524/com.example.cinetvhub D/VLC: [dd9272d0/2534] libvlc tls client: TLS handshake: Success.
2021-09-30 12:21:09.170 9436-9524/com.example.cinetvhub E/VLC: [dd9272d0/2534] libvlc tls client: Certificate verification failure: The certificate is NOT trusted. The certificate issuer is unknown.
2021-09-30 12:21:09.170 9436-9524/com.example.cinetvhub D/VLC: [dd9272d0/2534] libvlc tls client: 3 certificate(s) in the list
2021-09-30 12:21:09.172 9436-9524/com.example.cinetvhub D/VLC: [dd9272d0/2534] libvlc tls client: no known certificates for 8sio2e.debrid.it
2021-09-30 12:21:09.172 9436-9524/com.example.cinetvhub E/VLC: [dd9272d0/2534] libvlc tls client: TLS session handshake error
2021-09-30 12:21:09.172 9436-9524/com.example.cinetvhub E/VLC: [dd9272d0/2534] libvlc tls client: connection error: No such file or directory
2021-09-30 12:21:09.173 9436-9524/com.example.cinetvhub E/VLC: [ddb563b0/2534] libvlc stream: HTTP connection failure
2021-09-30 12:21:09.173 9436-9524/com.example.cinetvhub D/VLC: [ddb563b0/2534] libvlc stream: no access modules matched
2021-09-30 12:21:09.173 9436-9524/com.example.cinetvhub E/VLC: [dd8e9030/2534] libvlc input: Your input can't be opened
Android version
Android 5 TV
Edited by kreativeteksolutions