HTTP/SSL streaming broadcast not working
Hello,
I was trying broadcast video with SSL. But during connection to the stream I got exception
[0209a028] gnutls generic error: A TLS packet with unexpected length was received.
I then used curl for connection to the stream. And I got this:
C:\Users\root\Documents\curl-7.29.0-ssl-sspi-zlib-static-bin-w32\curl-7.29.0-ssl-sspi-zlib-static-bin-w32>curl.exe -kv https://192.168.1.90:8443/stream
- About to connect() to 192.168.1.90 port 8443 (#0)
- Trying 192.168.1.90...
- Connected to 192.168.1.90 (192.168.1.90) port 8443 (#0)
- SSLv3, TLS handshake, Client hello (1):
- SSLv3, TLS handshake, Server hello (2):
- SSLv3, TLS handshake, CERT (11):
- SSLv3, TLS handshake, Server key exchange (12):
- SSLv3, TLS handshake, Server finished (14):
- SSLv3, TLS handshake, Client key exchange (16):
- SSLv3, TLS change cipher, Client hello (1):
- SSLv3, TLS handshake, Finished (20):
- SSLv3, TLS change cipher, Client hello (1):
- SSLv3, TLS handshake, Finished (20):
- SSL connection using DHE-RSA-AES256-SHA
- Server certificate:
- subject: C=UA; ST=main; L=main; O=main; OU=main; CN=main; emailAddress=main
- start date: 2013-04-05 12:04:37 GMT
- expire date: 2014-04-05 12:04:37 GMT
- issuer: C=UA; ST=main; L=main; O=main; OU=main; CN=main; emailAddress=main
- SSL certificate verify result: self signed certificate (18), continuing anyway.
GET /stream HTTP/1.1 User-Agent: curl/7.29.0 Host: 192.168.1.90:8443 Accept: /
After this there are no any packets.
I used vlc 2.0.6,added certificate by UI:
SOUT: :sout=#transcode{vcodec=MJPG,vb=20,fps=5,scale=1,width=480,height=320,acodec=none}:std{access=https,mux=mpjpeg,dst=:8443/stream} :sout-keep
if set path to certificate in sout,that it doesn`t work,for example :sout=#transcode{vcodec=MJPG,vb=20,fps=5,scale=1,width=480,height=320,acodec=none}:std{access=https{cert=C:\Sert\signedCertificate,key=C:\Sert\privateKey},mux=mpjpeg,dst=:8443/stream} :sout-keep