Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Certificate verification failure when play live with vlc #162

Open
meiyanz opened this issue Jun 11, 2020 · 5 comments
Open

Certificate verification failure when play live with vlc #162

meiyanz opened this issue Jun 11, 2020 · 5 comments

Comments

@meiyanz
Copy link
Contributor

meiyanz commented Jun 11, 2020

Issue Description:
Certificate verification failure when play live with vlc
Error log:
gnutls error: Certificate verification failure: The certificate is NOT trusted. The certificate issuer is unknown. The certificate chain uses not yet valid certificate. The name in the certificate does not match the expected.
main error: TLS session handshake error
main error: connection error: No error
access error: HTTP connection failure
Reproduce Rate: 100%.
The commit information: commit dfaa5e0
Reproduce:
$ git clone https://github.com/OpenVisualCloud/CDN-Transcode-Sample.git
$ cd CDN-Transcode-Sample
$ git reset --hard dfaa5e0
$ sudo -E ./script/install_dependency.sh
$ sudo mkdir -p /etc/systemd/system/docker.service.d
$ printf "[Service]\nEnvironment="HTTPS_PROXY=$https_proxy" "NO_PROXY=$no_proxy"\n" | sudo tee /etc/systemd/system/docker.service.d/proxy.conf
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
$ cd deployment
$ make build_kubernetes
$ cmake ../ -DNVODS=0 -DNLIVES=1
$ make
$ cd ../
$ mkdir -p /etc/systemd/system/kubelet.service.d/
$ printf "[Service]\nEnvironment="HTTPS_PROXY=$https_proxy" "NO_PROXY=$no_proxy"\n" | sudo tee /etc/systemd/system/kubelet.service.d/proxy.conf
$ ./script/Kubernetes_setup_master.sh
$ kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}') | grep token: | awk '{print $2}'
$make volume
$make start_kubernetes
open vlc and play live : https://10.67.113.104/hls/media_0_0/index.m3u8

@xwu2git
Copy link
Contributor

xwu2git commented Jun 11, 2020

This is expected. The sample generates a self-signed certificate. It's not trusted anywhere.
Please see if there is any option in vlc to disable certificate verification.

@meiyanz
Copy link
Contributor Author

meiyanz commented Jun 12, 2020

I doesn't find any option to disable this certificate verification in VLC.
would you mind to ask which certificate verification it needed and how it is done.

@xwu2git
Copy link
Contributor

xwu2git commented Jun 16, 2020

How it was done before?
There is no good way to make a self-signed certificate trusted on a different server.
The closest I can think of is to follow this process: https://github.com/OpenVisualCloud/Dockerfiles/wiki/BKM:-Setup-Private-Docker-Registry-with-Self-Signed-Certificates

The other alternative is to expose http instead for testing purpose only.

@meiyanz
Copy link
Contributor Author

meiyanz commented Jun 18, 2020

there is a popup window to ask for your certificate when play live normally;
but there is no popup window when I play the live.

@xwu2git
Copy link
Contributor

xwu2git commented Jun 20, 2020

This is strange. There is no change to how the container works.
@TangZhiZhen, could you check if anything is changed?

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

No branches or pull requests

2 participants