
You set up OBS Studio, press Start Streaming to Facebook Live or a Telegram channel, and get "Failed to connect to server" or "The RTMP server sent an invalid SSL certificate". Both platforms require RTMPS, RTMP over TLS, so OBS must verify their certificate before it sends any video. When that check fails, the stream never starts. This is especially common on a freshly installed Windows Server or VPS. This guide explains the causes and the safe fixes, in the order that solves it fastest.
Quick answerOn a new Windows server, the trusted root certificates Facebook and Telegram use usually aren't installed yet. Open https://www.facebook.com (or https://telegram.org) once in Microsoft Edge on that server, or install all current roots with PowerShell as administrator:
certutil -generateSSTFromWU C:\roots.sst
Get-ChildItem C:\roots.sst | Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root
Then restart OBS and stream again.
What the error looks like in the OBS log
Open Help → Log Files → View Current Log after a failed attempt. Typical lines:
RTMP_Connect1, Cert verify failed: 8 (The certificate is not correctly signed by the trusted CA)
RTMP_Connect1, TLS_Connect failed: -0x7680
Connection to rtmps://live-api-s.facebook.com:443/rtmp/ failed: -2
"Cert verify failed" and -0x7680 point to missing or untrusted root certificates. "no SSL/TLS support" means your OBS build was compiled without RTMPS (common in some unofficial Linux packages).
Fix 1: Install the missing root certificates (Windows)
OBS on Windows uses the Windows certificate store. Windows normally downloads root certificates only when a browser or app first asks for them, and OBS's direct RTMPS connection doesn't trigger that download. On a fresh Windows Server or VPS, the store may hold only a couple of dozen roots, and Facebook's isn't one of them.
- Easiest: open
https://www.facebook.comin Edge on the same machine. Windows fetches the needed root automatically. For Telegram, openhttps://telegram.org. - Complete: run the two PowerShell commands from the quick answer.
certutil -generateSSTFromWUdownloads Microsoft's current list of trusted roots, andImport-Certificateadds them to the machine's Trusted Root store. - Also: install pending Windows Updates, which include root certificate updates.
Don't download random "OBS SSL fix" tools from file-sharing sites or unknown repositories. They need administrator rights, and certificate changes from an unknown source can compromise every secure connection on the server.
Fix 2: Check the system clock
TLS certificates are only valid within a date range. If the server's clock is wrong, every certificate looks invalid. On Windows, run:
w32tm /resync
w32tm /query /status
Make sure the time zone is correct and automatic time sync is on.
Fix 3: Use the correct server URL and key
- Facebook: in OBS, go to Settings → Stream, choose Service: Facebook Live and paste the stream key from Facebook's Live Producer. Don't type a plain
rtmp://URL; Facebook only accepts RTMPS on port 443. - Telegram: in your channel or group, start a live stream with the Stream with… option. Telegram shows a Server URL (starting with
rtmps://) and a Stream Key. In OBS choose Service: Custom…, paste the server URL and the key exactly, with no extra spaces. - Stream keys expire or change. If a key worked yesterday, copy a fresh one.
Fix 4: Update OBS Studio
Old OBS versions bundle older TLS libraries that may fail with current server settings. Install the latest OBS from obsproject.com (or with winget upgrade OBSProject.OBSStudio). On Linux, use the official OBS PPA or the Flathub package rather than an outdated distribution build, and make sure the ca-certificates package is installed and current.
Fix 5: Check antivirus, proxy and firewall
- Antivirus suites with "HTTPS scanning" or "SSL inspection" replace site certificates with their own. Turn that feature off or add an exception for
obs64.exe. - Corporate proxies that intercept TLS cause the same error. Stream from a network without interception, or add the proxy's root certificate.
- Outbound TCP port 443 must be open. Most networks allow it; some locked-down servers don't.
Still failing? Test the connection
From the same machine, check that the TLS handshake works outside OBS:
Test-NetConnection live-api-s.facebook.com -Port 443
If TcpTestSucceeded is False, the problem is the network or firewall, not certificates. If it's True and OBS still shows "Cert verify failed", repeat fix 1 and restart OBS completely.
Frequently asked questions
Why does OBS say the RTMP server sent an invalid SSL certificate?
Usually the root certificate that signed Facebook's or Telegram's certificate isn't installed on your PC, or the system clock is wrong. Install the roots and sync the clock.
Why does OBS fail to connect to Facebook Live on a new Windows server?
Fresh Windows Server installs contain only a few root certificates and download the rest on demand. OBS doesn't trigger that download, so open facebook.com in Edge once or import the roots with certutil.
Can I stream to Facebook with plain RTMP instead?
No. Facebook only accepts RTMPS (rtmps:// on port 443).
Where do I find Telegram's RTMP server URL and stream key?
Start a live stream in your Telegram channel or group and choose Stream with…; Telegram shows the server URL and stream key to paste into OBS.


