Twitch needs a https connection for the callback when it isn't calling back to localhost. For this every few years a new certificate needs to be created. The following steps are needed to create a new certificate:
- Open a terminal
- Navigate to a folder where you can temporarily store the created certificate
- If not done before, run
mkcert.exe -install
for certificates to be trusted automatically - run
mkcert.exe 192.168.1.144 127.0.0.1 localhost ::1
- Make sure to include all domains/ips you want the certificate to cover
- Rename the created files to
cert.pem
andkey.pem
- Move the files to wherever your start-up batch file is located
- At the time of writing this documentation the location is
C:\Users\<username>\OneDrive\<personaname>\STREAM\obs\overlays\apps
- At the time of writing this documentation the location is
- Open a terminal
- Navigate to the folder where the start-up batch file is located
- At the time of writing this documentation the location is
C:\Users\<username>\OneDrive\<personaname>\STREAM\obs\overlays\apps
- At the time of writing this documentation the location is
- Run
start-obs.bat
- For creating the ssl certificate
mkcert
is required - For the local server
serve
is required
As long as the stream overlay components application is running on the same machine as OBS the websocket connection can be established using ws://127.0.0.1:4455
/ ws://localhost:4455
. It doesn't matter that the application itself is served via https
as the mixed content policy includes an exception for localhost connections as those are generally seen as non-risky due to the fact that they are only accessible from the local machine.