Yes I am editing from the GUI from the menu options. I must be missing something that is not very obvious. Just not working for me!Are you starting and editing stunnel from the GUI ? or editing it via a text editor? just a thought incase the text editor is adding some unwanted character
Try adding into your Blueiris config requireCert = no
Thanks johnmcc. I already did try stopping and restarting the service, but i got the same error. however for the line 'connect = ' i used the port number alone similar to 'accept = ' line. So i tried again putting the full ip address suffixed with colon port number hoping it would work - but no go - same error message.Hi as a test of requireCert = no, I modified my config file to
[BlueIris]
accept= 1440
connect = 192.168.0.15:81
requireCert = no
Reloaded and whilst I got the message the me failed to initailise message I did get a connection from my iPhone. So stopped the stunnel and restarted failed to get a connection.
So back to
[BlueIris]
accept= 1440 <---this port is forwarded on my router
connect = 192.168.0.15:81 <--- windows home server
cert = stunnel.pem
Connection is ok
the stunnel.pem contains my cert from godaddy.
Apologies for not thinking to restart the service,
Yes the stunnel.pem is in the config directory, i did verify this while i was trying to verify if the certificate even exists.Just another thought, is your stunnel.pem in the config directory ?
Here is my config file you can check against yours,
[gmail-pop3]
client = yes
accept = 127.0.0.1:110
connect = pop.gmail.com:995
verify = 2
CAfile = ca-certs.pem
checkHost = pop.gmail.com
OCSPaia = yes
[gmail-imap]
client = yes
accept = 127.0.0.1:143
connect = imap.gmail.com:993
verify = 2
CAfile = ca-certs.pem
checkHost = imap.gmail.com
OCSPaia = yes
[gmail-smtp]
client = yes
accept = 25
connect = 74.125.206.108:465
cert = stunnel.pem
verify = 2
CAfile = ca-certs.pem
checkHost = smtp.gmail.com
OCSPaia = yes
[ssmtp]
client = yes
accept = 465
connect = 74.125.206.108:465
cert = stunnel.pem
verify = 1
CAfile = ca-certs.pem
checkHost = smtp.gmail.com
OCSPaia = yes
; Encrypted HTTP proxy authenticated with a client certificate
; located in the Windows certificate store
;[example-proxy]
;client = yes
;accept = 443
;connect = 443
;engineId = capi
; ***************************************** Example TLS server mode services
[BlueIris]
accept= 1440
connect = 192.168.0.15:81
cert = stunnel.pem
;verify = 1
;CAfile = ca-certs.pem
;OCSPaia = yes
To get a certificate you need a register domain name, I got mines from DynDns, think it costs me around around £15 per year(being in the UK). Though you can register a domain name with Godaddy and a certificate also, think it is a bit simpler to acquire a domain name and a certificate at the same supplier.
I use stunnel for BlueIris email alerts to encrypt them
Now I am no expert in this,just like yourself kept at it until I succeded
Hi to assist, I installed stunnel on my laptop, getting errors no certificate. Edit config file from
cert = stunnel.pem
to cert = path to stunnel.pem
in my case as follows
cert = c:/stunnel/config/stunnel.pem
Stunnel started Ok
edit for info laptop running windows 10
Ok re ran make certificate with these settings
WARNING: can't open config file: /devel/win32/openssl/openssl.cnf
Generating a 2048 bit RSA private key
.....................................................................................+++
.......................................................................+++
writing new private key to 'C:\stunnel\config\stunnel.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [PL]:UK
State or Province Name (full name) [Mazovia Province]:Mystate
Locality Name (eg, city) [Warsaw]:Mytown
Organization Name (eg, company) [Stunnel Developers]:mysecurity
Organizational Unit Name (eg, section) [Provisional CA]:sec
Common Name (FQDN of your server) [localhost]:myadd.com
Certificate created and Stunnel start Ok
Ok re ran make certificate with these settings
WARNING: can't open config file: /devel/win32/openssl/openssl.cnf
Generating a 2048 bit RSA private key
.....................................................................................+++
.......................................................................+++
writing new private key to 'C:\stunnel\config\stunnel.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [PL]:UK
State or Province Name (full name) [Mazovia Province]:Mystate
Locality Name (eg, city) [Warsaw]:Mytown
Organization Name (eg, company) [Stunnel Developers]:mysecurity
Organizational Unit Name (eg, section) [Provisional CA]:sec
Common Name (FQDN of your server) [localhost]:myadd.com
Certificate created and Stunnel start Ok
Great glad to have helped.
Setting up the app, for access external to your local network
I take it you have port 8080 on your router forwarded to the pc running BlueIris?
Also the WAN address you have entered in the app should be yourexternalipaddress.co.uk:8080 the part after the ipaddress instruct the app to use port 8080
I setup a VPN connection on on my router, so my iPhone when the VPN connection is running has a local address, even when I am away from home, so in the WAN address I enter the address as a local address.