Trouble connecting over HTTPS using Stunnel

bphillips

Young grasshopper
Joined
Oct 16, 2014
Messages
66
Reaction score
14
I'm trying to implement Stunnel so I can connect over HTTPS, mainly so I can cast my video feeds on a chromecast device. I'm having trouble getting it to work. It seems like the connection between BI and Stunnel keeps closing right away.

Here is my stunnel config:

; * Example TLS server mode services

[blue iris]
accept = 8457
connect = 8081
cert = stunnel.pem
Here is my BI config and the error I'm getting on my remote access test
blueiris.jpg

blueiris2.jpg

The error on the "verified server" line above says "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."

Here is my stunnel log

2020.02.15 12:23:58 LOG5[100]: Service [blue iris] accepted connection from 192.168.1.27:57216
2020.02.15 12:23:58 LOG6[100]: Peer certificate not required
2020.02.15 12:23:58 LOG6[100]: Decrypted ticket for an authenticated session: no
2020.02.15 12:23:58 LOG6[100]: TLS accepted: previous session reused
2020.02.15 12:23:58 LOG6[100]: TLSv1.2 ciphersuite: ECDHE-RSA-AES256-GCM-SHA384 (256-bit encryption)
2020.02.15 12:23:58 LOG6[100]: Session id:
2020.02.15 12:23:58 LOG6[100]: s_connect: connecting 127.0.0.1:8081
2020.02.15 12:23:58 LOG5[100]: s_connect: connected 127.0.0.1:8081
2020.02.15 12:23:58 LOG6[100]: persistence: 127.0.0.1:8081 cached
2020.02.15 12:23:58 LOG5[100]: Service [blue iris] connected remote server from 127.0.0.1:57217
2020.02.15 12:23:58 LOG6[100]: TLS socket closed (SSL_read)
2020.02.15 12:23:58 LOG5[100]: Connection closed: 0 byte(s) sent to TLS, 0 byte(s) sent to socket
2020.02.15 12:23:58 LOG5[101]: Service [blue iris] accepted connection from 192.168.1.27:57218
2020.02.15 12:23:58 LOG6[101]: Peer certificate not required
2020.02.15 12:23:58 LOG6[101]: Decrypted ticket for an authenticated session: no
2020.02.15 12:23:58 LOG6[101]: TLS accepted: previous session reused
2020.02.15 12:23:58 LOG6[101]: TLSv1.2 ciphersuite: ECDHE-RSA-AES256-GCM-SHA384 (256-bit encryption)
2020.02.15 12:23:58 LOG6[101]: Session id:
2020.02.15 12:23:58 LOG6[101]: s_connect: connecting 127.0.0.1:8081
2020.02.15 12:23:58 LOG5[101]: s_connect: connected 127.0.0.1:8081
2020.02.15 12:23:58 LOG6[101]: persistence: 127.0.0.1:8081 cached
2020.02.15 12:23:58 LOG5[101]: Service [blue iris] connected remote server from 127.0.0.1:57219
2020.02.15 12:23:58 LOG6[101]: Read socket closed (readsocket)
2020.02.15 12:23:58 LOG6[101]: SSL_shutdown successfully sent close_notify alert
2020.02.15 12:23:58 LOG6[101]: TLS socket closed (SSL_read)
2020.02.15 12:23:58 LOG5[101]: Connection closed: 295 byte(s) sent to TLS, 326 byte(s) sent to socket
2020.02.15 12:23:58 LOG5[102]: Service [blue iris] accepted connection from 192.168.1.27:57220
2020.02.15 12:23:58 LOG6[102]: Peer certificate not required
2020.02.15 12:23:58 LOG6[102]: Decrypted ticket for an authenticated session: no
2020.02.15 12:23:58 LOG6[102]: TLS accepted: previous session reused
2020.02.15 12:23:58 LOG6[102]: TLSv1.2 ciphersuite: ECDHE-RSA-AES256-GCM-SHA384 (256-bit encryption)
2020.02.15 12:23:58 LOG6[102]: Session id:
2020.02.15 12:23:58 LOG6[102]: s_connect: connecting 127.0.0.1:8081
2020.02.15 12:23:58 LOG5[102]: s_connect: connected 127.0.0.1:8081
2020.02.15 12:23:58 LOG6[102]: persistence: 127.0.0.1:8081 cached
2020.02.15 12:23:58 LOG5[102]: Service [blue iris] connected remote server from 127.0.0.1:57221
2020.02.15 12:23:58 LOG6[102]: TLS socket closed (SSL_read)
2020.02.15 12:23:58 LOG5[102]: Connection closed: 0 byte(s) sent to TLS, 0 byte(s) sent to socket
2020.02.15 12:23:58 LOG5[103]: Service [blue iris] accepted connection from 192.168.1.27:57222
2020.02.15 12:23:58 LOG6[103]: Peer certificate not required
2020.02.15 12:23:58 LOG6[103]: Decrypted ticket for an authenticated session: no
2020.02.15 12:23:58 LOG6[103]: TLS accepted: previous session reused
2020.02.15 12:23:58 LOG6[103]: TLSv1.2 ciphersuite: ECDHE-RSA-AES256-GCM-SHA384 (256-bit encryption)
2020.02.15 12:23:58 LOG6[103]: Session id:
2020.02.15 12:23:58 LOG6[103]: s_connect: connecting 127.0.0.1:8081
2020.02.15 12:23:58 LOG5[103]: s_connect: connected 127.0.0.1:8081
2020.02.15 12:23:58 LOG6[103]: persistence: 127.0.0.1:8081 cached
2020.02.15 12:23:58 LOG5[103]: Service [blue iris] connected remote server from 127.0.0.1:57223
2020.02.15 12:23:58 LOG6[103]: TLS socket closed (SSL_read)
2020.02.15 12:23:58 LOG5[103]: Connection closed: 15341 byte(s) sent to TLS, 344 byte(s) sent to socket
I'm using Google WiFi and have port 8457 forwarded in the router.

Does anyone know what I'm doing wrong here?
 

Attachments

Top