
ĬAfile = C:\Program Files (x86)\stunnel\config\ca-certs.pem Your code will look like so, to use a secure certificate during your live streams. You will create a default certificate for your server which can be used to secure your server from man in the middle attacks. On windows, during stunnels install / start up, Stunnel uses SSL certificates to secure its connections, which you can easily create using the OpenSSL package, Certbot, or by using the Stunnels SSL Cert: PLEASE NOTE: NGINX AND THE RTMP STREAMING SERVER MODULE MUST BE CONFIGURED FOR WINDOWS STREAMING BEFORE USING STUNNELĬ:\\Users\YourUsername\AppData\ Local\stunnel\config\stunnel.c onf Or try to find a nginx for windows version that is available for free. NOTE: (Purchase at own risk as M1GC are not affiliated with this website) (Read here to view free / commercial Nginx modules installed) The subscription version for windows contains the RTMP-Module


I'll assume you have some pre-installed version of Nginx installed with the RTMP-Module & ffmpeg (optional)įor this setup, I’m using nginx 1.17.0.1 Crow ( download here ) on Windows 10.
#Stunnel tutorial how to
How to Secure rtmps push / rtmps stream to Facebook

The nginx-rtmp-module also doesn't support pushing to an rtmps:// address.Īnd i don't think the feature will be added in any recent releases as it is simple to achieve this and the module hasn't been updated in years.Ī easy way to incorporate RTMPS into this module is by using stunnel, a popular “application used to provide a universal TLS/SSL tunneling service”. Unfortunately, The NGINX module nginx-rtmp-module doesn’t support RTMPS “out-of-the-box”.
