Note to Future Me: “When I can’t remember how I worked this out, or where I stored the spreadwheet, I’ll hopefully find this in a Search”
For anyone else struggling as I was to overcome the problem of getting Media Tiles to work in Chrome v111 and newer from an EXTERNAL INTERNET CONNECTION, here’s a Step-By-Step Guide on how I was able to resolve it.
The Main Things You’ll Need:
- Blue Iris Software running on a Local Server
- Stunnel running on the same Server
- A Domain Name
- SSL Security Certificates
Now, as @josh has indicated, this isn’t for the faint of heart!
I dropped in Line Item Numbers for reference. If you see a mistake or something I can improve on, please reference the Line Item Number in your reply and I’ll make the edits in the original post.
Good Luck should you need to implement this
Note: if at some time I’m able to upload a file, I’ll gladly attached the table below in PDF.
Reference/Background | 1 | Comments | ||
---|---|---|---|---|
Bread Crumbs in This Link | 2 | The information in the Bread Crumbs Link helped me figure out what do in my situation | ||
3 | The Bread Crumbs Link assumes you do NOT already have a website | |||
4 | In my situation, I already had a Domain to use which already had SSL Certificates to use: So I did NOT need to create new Certificates | |||
5 | ||||
IMPORTANT NOTE | 6 | If you don’t need HTTPS access from OUTSIDE of your own Local Network, you MIGHT be able to use Stunnel’s Self-Signed Certificates | ||
7 | ||||
Step-By-Step | 8 | Device or Software | Tab Within | Details |
9 | ||||
10 | Blue Iris | Of course, your Blue Iris Software needs to be set up and running | ||
11 | WebServer | Enable the HTTP Port: Choose a port that does not conflict with an existing device. Example 81 | ||
12 | Enable the HTTP Port (Stunnel/NGROK). Choose a port that does not conflict. Example 443 | |||
13 | Click Advanced | |||
14 | Un-select Use secure session keys and login page (this will allow SharpTools to pass the Username & Password in the Media Tile | |||
15 | Should click the HELP File in Blue Iris and read up a bit on HTTPS and Stunnel for a general understanding. | |||
16 | Each Camera | General Tab: Assure Name and Short Name are filled in meaningfully for you. Example: Driveway Camera; DriveCam | ||
17 | You’ll need this later in SharpTools to build the URL | |||
18 | User Name | Create a User Name and Password: example: MyUserName; MyPassword (of course use something more secure than that | ||
19 | ||||
20 | Router | DHCP Reservations | Reserve the IP of your Blue Iris Server to assure it gets the same IP every time it boots up. | |
21 | Port Forwarding | Forward the HTTP Port you chose in Blue Iris to the Mac Address (or IP) of your Blue Iris Server: Port Start/End=81; WAN Ports=81/81 | ||
22 | Forward the HTTPS Port you chose in Blue Iris to the Mac Address (or IP) of your Blue Iris Server: Port Start/End=443; WAN Ports=443/443 | |||
23 | ||||
24 | Stunnel | www.stunnel.org | Download the version of Stunnel that is suitable for your OS | |
25 | Install Stunnel: Upon Install, it will prompt you for some basic information | |||
26 | In my case, it’s Windows 10 | |||
27 | ||||
28 | Domain Host | Manage DNS Records | This is located in different places on different Domain Hosts. In SiteGround, it’s under Domain/DNS Zone Editor | |
29 | This is where you’re going to create the reference from your WEBSITE back to the Blue Iris Server | |||
30 | Create an A Record named: BlueIris.YOURDOMAIN.com | |||
31 | IPv4 Address: Will be the IP Address of your Internet Service (see Blue Iris Settings/WebServer: It shows you the EXTERNAL IP Address) | |||
32 | ||||
33 | Security/SSL Manager | Select your Domain and View the Certificates | ||
34 | If you DO NOT have Certificates, you’ll need to create them within your Domain Host | |||
35 | In my case, SiteGround already created and maintains Let’s Encrypt Certificates | |||
36 | Select your Certificate and click View. You should have THREE. Be ready to copy/paste these into new files on your computer below. | |||
37 | 1) Certificate (CRT) | |||
38 | 2) Private Key (KEY) | |||
39 | 3) Certificate Authority Bundle (CABUNDLE) | |||
40 | ||||
41 | Windows Explorer | C:\Program Files (x86)\Stunnel\config | Copy the default Stunnel.PEM file to a new file named: MyDomain.pem (of course MyDomain=Your actual domain name | |
42 | Copy the default Stunnel.PEM file to a new file named: MyDomain.cafile.pem (of course MyDomain=Your actual domain name | |||
43 | Open your new MyDomain.pem file; select all; Delete everything; Copy/Paste your PRIVATE KEY, followed by your CERTIFICATE into this file | |||
44 | Open your new MyDomain.cafile.pem file; select all; Delete everything; Copy/Paste your Certificate Authority Bundle into this file | |||
45 | Of course, save both new files above (you might have to deal with some Windows Security to edit these files). | |||
46 | Make a copy of the default Stunnel.CONF file for your reference if needed in the future | |||
47 | Open stunnel.conf, select all, Delete Everything; Create the following text; save (of course use whatever ports you chose instead of 443 and 81) | |||
48 | ; TLS front-end to a web server [BlueIris] accept = 443 connect = 81 cert =mydomain.com.pem CAFile = mydomain.com.cafile.pem |
|||
49 | ||||
50 | Stunnel | Top Menu | Pull Down: Configuration; Reload Configuration | |
51 | You should perhaps 7 lines of text ending in Configuration successful. If not, confirm ALL of the steps above have been completed | |||
52 | You might need to Pull Down File; Terminate; Then restart Stunnel | |||
53 | ||||
54 | Web Browser | Preliminary Test of URL for SharpTools | In CHROME v111 and newer: Type in the following URL: https://blueiris.mydomain.com:443/mjpg/BlueIrisShortCamName/?user=XXX&pw=XXX | |
55 | Example would look like: https://blueiris.mydomain.com:443/mjpg/DriveCam/?user=MyUserName&pw=MyPassword | |||
56 | IF THIS WORKS: You’ll be taken DIRECTLY to the Video Stream (without pausing to sign into Blue Iris or the Camera) | |||
57 | ||||
58 | SharpTools | Account/ManageResources/Media | Create New | |
59 | Media Name: Driveway Camera | |||
60 | Media URL: Use the SUCCESSFUL URL that you tested above in Chrome | |||
61 | You SHOULD see a LIVE Thumbnail at the bottom. | |||
62 | Click Update; Might have to click Update again | |||
63 | Click anywhere OFF of the Create Media Dialog to exit | |||
64 | ||||
65 | Pull Down Dashboard | Select an Existing Dashboard OR Create a New One depending upon your needs. | ||
66 | Click 3 Dots; Edit; +; Media; Select your Media Tile(s); Click Done; Click Save | |||
67 | You should see a LIVE view of your Camera | |||
Edit the Tile to your liking and needs |