HTTPS login - Certificate error

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Raarrr
Posts: 3
Joined: Monday 28 March 2016 13:33
Target OS: Windows
Domoticz version:
Contact:

HTTPS login - Certificate error

Post by Raarrr »

Good day folks!

Hope you can lend me a hand..

I've been trying to access my Domoticz setup using HTTPS on port 443 instead of the normal HTTP on 8080.

I added the -sslwww443 in domoticz.sh right after -www8080.

But when I try to log in using HTTPS I keep getting the certificate error as in the screenshot.

HTTPS is crossed out and I can onlu log in using HTTP.

Who knows the fix?

Thanks a lot
Attachments
Schermopname (38).jpg
Schermopname (38).jpg (185.26 KiB) Viewed 3050 times
Raarrr
Posts: 3
Joined: Monday 28 March 2016 13:33
Target OS: Windows
Domoticz version:
Contact:

Re: HTTPS login - Certificate error

Post by Raarrr »

BUMP
rvvliet78
Posts: 3
Joined: Thursday 30 July 2015 22:19
Target OS: -
Domoticz version:
Contact:

Re: HTTPS login - Certificate error

Post by rvvliet78 »

Did you install a certificate?
And certificated are domain based and not ip addressed based.

I never used the ssl options with domoticz but i can imagine you need to configure more then just -sslwww443

Sent from my Nexus 5X using Tapatalk
mrf68

Re: HTTPS login - Certificate error

Post by mrf68 »

The fact that it's crossed out doesn't mean your not using https. In your screenprint you can see the second statement "Je verbinding met 10.0.0.3 is versleuteld....". If you read what is mentioned above that, it says "De identiteit van deze website is niet geverifieerd. Het servercertificaat komt niet overeen met de URL. Het servercertificaat is niet betrouwbaar. ". The URL you use is 10.0.0.3, the certificate is valid for *.domoticz.com.

You can trick your computer by editing its hosts file (i.e. on Windows: C:\Windows\System32\drivers\etc\). Add this line:

Code: Select all

10.0.0.3 mijn.domoticz.com
.. and save it. You need to have administrator rights when editing this file. Then open your browser and go to https://mijn.domoticz.com/. It still says that there is a problem, but you will see that the statement "Het servercertificaat komt niet overeen met de URL" has disappeared.

Image

When you click on "Certificaatgegevens" you will get the info "Dit CA-basiscertificaat wordt niet vertrouwd." It doesn't like the issuer of this certificate. We can solve that.
Click "Certificaatgegevens", select tab "Details" and click "Kopiëren naar bestand...". A wizard starts where you can export this certificate. Click "Volgende", click "Volgende", click "Bladeren" so you can see where the file will be placed, give it a name like "localdomoticz" and click "Opslaan", click "Volgende" (you can see the full path again), click "Voltooien" and a message appears "Het exporteren is voltooid."
Now you can ipmort this certificate in your browser. Looking at your screenprint, you are using Chrome. Start Chrome, open "Instellingen", click "Geavanceerde instellingen weergeven...", click "Certificaten beheren...", click "Importeren", click "Volgende", click "Bladeren" and select the file whe just created, click "Openen", click "Volgende", click "Bladeren" and select "Vertrouwde basiscertificeringsinstanties" and click "OK", click "Volgende", click "Voltooien". Then a warning appears and the system asks if you want to install this certificate, click "Ja". Restart your browser and you will see no crossed out lock anymore.

Image

WARNING:
I must add a warning: if you don't know what you're doing, messing with the system's security settings can be tricky. I can't take any responsibility for problems that arise while following this little tutorial.
User avatar
erem
Posts: 230
Joined: Tuesday 27 March 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Amsterdam/netherlands
Contact:

Re: HTTPS login - Certificate error

Post by erem »

Hi all,

i had the same issue. I solved this using this procedure (it did NOT work for IE, but i do not use that any more) Works for chrome/Firefox.

===================
https://www.attachmate.com/documentatio ... d_cert.htm
===================

Hope this helps,

regards,
Rob
Regards,

Rob
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest