No. And besides, VLC creates the parameters when it is started, and then reuses them for all clients. It does not generate them when a client connects.
Thanks for the reply, anyway, it was too fast.
If you have time to follow the detailed steps below, you will see that what I wrote is right.
Your initial "No" is, actually, a "Yes".
So, again, my question is: is it possible to set the vlc https server to use pre-built DF-2048 parameters? without generating it at each play?
1 - Generate a signed certificate. If you don't have one, you can do like this:
https://www.nginx.com/blog/using-free-s ... ith-nginx/
2 - prepare a video to be streamed, in my example is "black.mp4"
3 - Open a terminal (T1) and run:
# vlc -vvv -I telnet --telnet-password videolan --telnet-port 8888 --http-cert="/path/to/signed/certificate/fullchain.pem" --http-key="/path/to/private/key/privkey.pem"
4 - Open a second terminal (T2) and run
# telnet localhost 8888
# login with password ("videolan")
VLC media player 3.0.17.4 Vetinari
Password:
Welcome, Master
> new black broadcast enabled
new
> setup black input /path/to/black.mp4
setup
> setup black output #std{access=https,dst=:5005/black.ts}
setup
> setup black option sout-keep
setup
> setup black option no-sout-all
setup
> control black play
control
>
5 - On T1, you will see the lines:
[b27020b0] gnutls tls server debug: using GnuTLS version 3.6.7
[b27020b0] gnutls tls server debug: generating Diffie-Hellman 2048-bits parameters...
[b27020b0] gnutls tls server debug: ciphers parameters loaded
[b27020b0] main tls server debug: using tls server module "gnutls"
[b27017b0] main access out debug: net: listening to * port 5005
6 - On T2, stop the streaming:
> control black stop
control
>
7 - On T1, you will see the liines:
[b27017b0] main access out debug: removing module "http"
[b2726268] main http host debug: HTTP host removed
8 - On T2, play again:
> control black play
control
>
9 - On T1, you will see the lines:
[b2719468] gnutls tls server debug: using GnuTLS version 3.6.7
[b2719468] gnutls tls server debug: generating Diffie-Hellman 2048-bits parameters...
[b2719468] gnutls tls server debug: ciphers parameters loaded
[b2719468] main tls server debug: using tls server module "gnutls"
[b272b0e8] main access out debug: net: listening to * port 5005