problem when connecting to a https url

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
albalber1
New Cone
New Cone
Posts: 1
Joined: 05 Feb 2010 15:19

problem when connecting to a https url

Postby albalber1 » 05 Feb 2010 15:29

Hi.

I'm trying to access an .avi file through https.
I verified the https access through firefox and all is ok.
Then, I put cert+key ( certificate.pem , key.pem ) in local vlc/ssl/certs and vlc/ssl/private directories



When I try to access the url with vlc I obtain the following errors (see below)

How can I fix that?

thanks



ocs@ocs-desktop:~/.local/share/vlc/ssl$ vlc -vvv https://localhost/prova.avi


VLC media player 1.0.5 Goldeneye
[0x83cb140] main libvlc debug: VLC media player - version 1.0.5 Goldeneye - (c) 1996-2010 the VideoLAN team
[0x83cb140] main libvlc debug: libvlc was configured with ./configure
[0x83cb140] main libvlc debug: translation test: code is "C"
[0x83cb140] main libvlc debug: checking plugin modules
[0x83cb140] main libvlc debug: loading plugins cache file /home/ocs/.cache/vlc/plugins-04041e.dat
[0x83cb140] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[0x83cb140] main libvlc debug: module bank initialized (329 modules)
[0x83cb140] main libvlc debug: opening config file (/home/ocs/.config/vlc/vlcrc)
[0x83cb140] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[0x83cb140] main libvlc debug: looking for memcpy module: 3 candidates
[0x83cb140] main libvlc debug: using memcpy module "memcpymmxext"
[0x84694b8] main input debug: Creating an input for 'Raccolta multimediale'
[0x84694b8] main input debug: Input is a meta file: disabling unneeded options
[0x84694b8] main input debug: using timeshift granularity of 50 MBytes
[0x84694b8] main input debug: using timeshift path '/tmp'
[0x84694b8] main input debug: `file/xspf-open:///home/ocs/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/ocs/.local/share/vlc/ml.xspf'
[0x84694b8] main input debug: creating demux: access='file' demux='xspf-open' path='/home/ocs/.local/share/vlc/ml.xspf'
[0x846af60] main demux debug: looking for access_demux module: 0 candidates
[0x846af60] main demux debug: no access_demux module matched "file"
[0x846af60] main demux debug: TIMER module_need() : 0,050 ms - Total 0,050 ms / 1 intvls (Avg 0,050 ms)
[0x84694b8] main input debug: creating access 'file' path='/home/ocs/.local/share/vlc/ml.xspf'
[0x846b208] main access debug: looking for access module: 3 candidates
[0x846b208] access_file access debug: opening file `/home/ocs/.local/share/vlc/ml.xspf'
[0x846b208] main access debug: using access module "access_file"
[0x846b208] main access debug: TIMER module_need() : 0,394 ms - Total 0,394 ms / 1 intvls (Avg 0,394 ms)
[0x845f1c8] main stream debug: Using AStream*Stream
[0x845f1c8] main stream debug: pre buffering
[0x845f1c8] main stream debug: received first data after 0 ms
[0x845f1c8] main stream debug: pre-buffering done 304 bytes in 0s - 13494 kbytes/s
[0x845e308] main stream debug: looking for stream_filter module: 5 candidates
[0x845e308] main stream debug: TIMER module_need() : 0,336 ms - Total 0,336 ms / 1 intvls (Avg 0,336 ms)
[0x845e308] main stream debug: looking for stream_filter module: 1 candidate
[0x845e308] main stream debug: using stream_filter module "stream_filter_record"
[0x845e308] main stream debug: TIMER module_need() : 0,106 ms - Total 0,106 ms / 1 intvls (Avg 0,106 ms)
[0x84694b8] main input debug: creating demux: access='file' demux='xspf-open' path='/home/ocs/.local/share/vlc/ml.xspf'
[0x84604c0] main demux debug: looking for demux module: 1 candidate
[0x84604c0] playlist demux debug: using XSPF playlist reader
[0x84604c0] main demux debug: using demux module "playlist"
[0x84604c0] main demux debug: TIMER module_need() : 0,219 ms - Total 0,219 ms / 1 intvls (Avg 0,219 ms)
[0x84694b8] main input debug: `file/xspf-open:///home/ocs/.local/share/vlc/ml.xspf' successfully opened
[0x846f7c0] main xml debug: looking for xml module: 2 candidates
[0x846f7c0] main xml debug: using xml module "xtag"
[0x846f7c0] main xml debug: TIMER module_need() : 0,356 ms - Total 0,356 ms / 1 intvls (Avg 0,356 ms)
[0x84604c0] playlist demux debug: parsed 0 tracks successfully
[0x846f7c0] main xml debug: removing module "xtag"
[0x84694b8] main input debug: EOF reached
[0x84604c0] main demux debug: removing module "playlist"
[0x845e308] main stream debug: removing module "stream_filter_record"
[0x846b208] main access debug: removing module "access_file"
[0x84694b8] main input debug: TIMER input launching for 'Raccolta multimediale' : 3,279 ms - Total 3,279 ms / 1 intvls (Avg 3,279 ms)
[0x8468468] main playlist debug: Activated
[0x8468468] main playlist debug: rebuilding array of current - root Scaletta
[0x8468468] main playlist debug: rebuild done - 0 items, index -1
[0x84694b8] main interface debug: looking for interface module: 1 candidate
[0x84694b8] main interface debug: using interface module "hotkeys"
[0x84694b8] main interface debug: TIMER module_need() : 0,203 ms - Total 0,203 ms / 1 intvls (Avg 0,203 ms)
[0x84694b8] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x84694b8] main interface debug: thread started
[0x84618b8] main interface debug: looking for interface module: 1 candidate
[0x84618b8] main interface debug: using interface module "inhibit"
[0x84618b8] main interface debug: TIMER module_need() : 4,547 ms - Total 4,547 ms / 1 intvls (Avg 4,547 ms)
[0x84618b8] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x84618b8] main interface debug: thread started
[0x845f900] main interface debug: looking for interface module: 1 candidate
[0x845f900] main interface debug: using interface module "screensaver"
[0x845f900] main interface debug: TIMER module_need() : 0,169 ms - Total 0,169 ms / 1 intvls (Avg 0,169 ms)
[0x845f900] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x845f900] main interface debug: thread started
[0x8468468] main playlist debug: adding item `https://localhost/prova.avi' ( https://localhost/prova.avi )
[0x845d4f0] main interface debug: looking for interface module: 1 candidate
[0x845d4f0] main interface debug: using interface module "signals"
[0x845d4f0] main interface debug: TIMER module_need() : 0,149 ms - Total 0,149 ms / 1 intvls (Avg 0,149 ms)
[0x845d4f0] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x845d4f0] main interface debug: thread started
[0x845d4f0] main interface debug: thread ended
[0x8470470] main interface debug: looking for interface module: 0 candidates
[0x8470470] main interface error: no interface module matched "globalhotkeys,none"
[0x8470470] main interface debug: TIMER module_need() : 0,056 ms - Total 0,056 ms / 1 intvls (Avg 0,056 ms)
[0x8470470] main interface error: no suitable interface module
[0x83cb140] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x8470470] main interface debug: looking for interface module: 1 candidate
[0x8470470] qt4 interface debug: Error while initializing qt-specific localization
[0x8470470] main interface debug: using interface module "qt4"
[0x8470470] main interface debug: TIMER module_need() : 77,400 ms - Total 77,400 ms / 1 intvls (Avg 77,400 ms)
[0x8470470] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x8470470] main interface debug: thread started
[0x8470470] main interface debug: thread ended
[0x8468468] main playlist debug: rebuilding array of current - root Scaletta
[0x8468468] main playlist debug: rebuild done - 1 items, index -1
[0x8468468] main playlist debug: processing request item null node Scaletta skip 0
[0x8468468] main playlist debug: starting new item
[0x8468468] main playlist debug: creating new input thread
[0xb7300c98] main input debug: Creating an input for 'https://localhost/prova.avi'
[0xb7300c98] main input debug: thread (input) created at priority 10 (input/input.c:230)
[0xb7300c98] main input debug: thread started
[0xb7300c98] main input debug: using timeshift granularity of 50 MBytes
[0xb7300c98] main input debug: using timeshift path '/tmp'
[0xb7300c98] main input debug: `https://localhost/prova.avi' gives access `https' demux `' path `localhost/prova.avi'
[0xb7300c98] main input debug: creating demux: access='https' demux='' path='localhost/prova.avi'
[0x85fc320] main demux debug: looking for access_demux module: 0 candidates
[0x85fc320] main demux debug: no access_demux module matched "https"
[0x85fc320] main demux debug: TIMER module_need() : 0,062 ms - Total 0,062 ms / 1 intvls (Avg 0,062 ms)
[0xb7300c98] main input debug: creating access 'https' path='localhost/prova.avi'
[0x8471980] main access debug: looking for access module: 1 candidate
[0x8471980] access_http access debug: http: server='localhost' port=443 file='/prova.avi
[0x8471980] main access debug: net: connecting to localhost port 443
[0x8471980] main access debug: connection: Operation now in progress
[0x8471980] main access debug: connection succeeded (socket = 10)
[0x85fe208] main tls client debug: requested server name: localhost
[0x85fe208] main tls client debug: looking for tls client module: 1 candidate
[0x85fe208] gnutls tls client debug: GnuTLS v2.8.3 initialized
[0x85fe208] gnutls tls client debug: added x509 credentials (/home/ocs/.local/share/vlc/ssl/certs/certificate.pem)
[0x85fe208] gnutls tls client warning: cannot add x509 credentials (/home/ocs/.local/share/vlc/ssl/private/key.pem): Base64 decoding error.
[0x85fe208] gnutls tls client debug: added x509 credentials (/usr/local/etc/ssl/certs/ca-certificates.crt)
[0x85fe208] main tls client debug: using tls client module "gnutls"
[0x85fe208] main tls client debug: TIMER module_need() : 165,378 ms - Total 165,378 ms / 1 intvls (Avg 165,378 ms)
[0x8470470] qt4 interface debug: IM: Setting an input
[0x8470470] qt4 interface debug: Updating the geometry
[0x8470470] qt4 interface debug: Updating the geometry
[0x85fe208] gnutls tls client error: Certificate does not match "localhost"
[0x85fe208] main tls client error: TLS client session handshake error
[0x85fe208] gnutls tls client debug: GnuTLS deinitialized
[0x85fe208] main tls client debug: removing module "gnutls"

[0x8471980] access_http access error: cannot establish HTTP/TLS session
[0x8471980] main access warning: no access module matching "https" could be loaded
[0x8471980] main access debug: TIMER module_need() : 254,166 ms - Total 254,166 ms / 1 intvls (Avg 254,166 ms)
[0x8471980] main access debug: waitpipe: object killed
[0xb7300c98] main input error: open of `https://localhost/prova.avi' failed: (null)
[0x8468468] main playlist debug: dead input
[0xb7300c98] main input debug: thread ended

Rémi Denis-Courmont
Developer
Developer
Posts: 15328
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: problem when connecting to a https url

Postby Rémi Denis-Courmont » 06 Feb 2010 11:33

The real problem here is that the server's certificate Common Name does not match "localhost".

A side problem is that your private key is malformatted.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 38 guests