Adding your own cert

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Calzor Suzay
Posts: 145
Joined: Tuesday 08 July 2014 15:10
Target OS: -
Domoticz version: 4.9700
Location: UK
Contact:

Adding your own cert

Post by Calzor Suzay »

My Asus router has the ability to setup DDNS along with a domain name, it's own cert via LetsEncrypt that renews and which all seems to work over https port 443.
If I turn on port forwarding I end up at my Domoticz install although it appears offline if I'm outside my own network but I think that's an auth issue.

Anyway I can export the cert from the router which gives me a cert.pem and a key.pem, how do I go about installing the cert.pem into my domoticz install?. I've read though the wiki page here https://www.domoticz.com/wiki/Native_se ... ts_Encrypt even the "Add the certificate to Domoticz" but to be honest it baffles me as it talks about installing, creating etc. and none of the paths match :?

Is there a folder I just to copy it into and if/when I do get it working is it a one off or do I keep needing to export it from my router into Domoticz as it renews? It says it expires Jan '21
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Adding your own cert

Post by Justintime »

I was wondering the same. My guess is you have an Asus Router.

I just cant get Nginx or Apache reverse proxy to work. Been busy with it for several evenings.

It surprises me that there isnt a good tutorial on this for noobs especially while security is a big thing.
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: Adding your own cert

Post by erem »

@Justintime

you can try this tutorial, simple and to the point.

https://phoenixnap.com/kb/nginx-reverse-proxy

then the config should be something like this

Code: Select all

server {
listen 60443;
location / {
proxy_pass http://domoticz_server_ip:8080;
}
}
then in your router forward port 60443 to the ip of your server running nginx
Regards,

Rob
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest