How can I secure connection to nextcloud?

Guides and tutorials for various stuff. Posted by DietPi users.
Mordog
Posts: 13
Joined: Fri Aug 24, 2018 10:18 am

Re: How can I secure connection to nextcloud?

Post by Mordog »

stuck at point 10.
can access nextcloud from internet and lan via app and browser with noip.
But every time i try to run dietpi-letsencrypt the following errormassage appears.

Code: Select all

- The following errors were reported by the server:

   Domain: xxxxxxx.xxxxx.org
   Type:   None
   Detail: DNS problem: NXDOMAIN looking up A for xxxxxx.xxxxx.org -
   check that a DNS record exists for this domain
[FAILED] CertBot failed with error code (1), please check its terminal output. Aborting...
any ideas what i do wrong?
(pihole/nextcloud/unbound/noip installed)
User avatar
Joulinar
Posts: 2638
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

looks like your DDNS domain is not existing as you get a NXDOMAIN. LetsEncrypt is trying to get an IPv4 address for your domain but without success.

Code: Select all

   Detail: DNS problem: NXDOMAIN looking up A for xxxxxx.xxxxx.org -
   check that a DNS record exists for this domain
I would recommend to login to your NoIP account and check of your domain is registered correctly
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mordog
Posts: 13
Joined: Fri Aug 24, 2018 10:18 am

Re: How can I secure connection to nextcloud?

Post by Mordog »

Joulinar wrote: Sat Aug 29, 2020 11:05 pm I would recommend to login to your NoIP account and check of your domain is registered correctly
as far as i can tell should be registered correctly.
tempsnip.png
User avatar
Joulinar
Posts: 2638
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

hi, can you check if your DNS record is found by global DNS server?

https://dnschecker.org/

Probably it was taking time to be published correctly
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mordog
Posts: 13
Joined: Fri Aug 24, 2018 10:18 am

Re: How can I secure connection to nextcloud?

Post by Mordog »

thx Joulinar,

while typing the url in the dnschecker i realized i fucked up the domainname in dietpi-letsencrypt without seeing it.
tiny little typo.
so as most of the times the problem sits in front of the display.
Thanks for your time.
User avatar
Joulinar
Posts: 2638
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

at least you found it :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
JohnDoeFR
Posts: 34
Joined: Tue Sep 22, 2020 6:04 pm

Re: How can I secure connection to nextcloud?

Post by JohnDoeFR »

Hi there,

Is it possible to use Lets Encrypt but without the DDNS thing ? It's just for syncing over my internal network and the iPad force me to use httpS so i'm stuck here...

Thanks
User avatar
Joulinar
Posts: 2638
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

not really. Let'sEncrypt expects a DNS entry, as this is the domain name the certificate will be issued on. Next to this, the certificate need to renewed regularly, otherwise it will expire and you would get an error message on your browser as well. Maybe there are settings in Safari to deactivate forcing HTTPS.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
JohnDoeFR
Posts: 34
Joined: Tue Sep 22, 2020 6:04 pm

Re: How can I secure connection to nextcloud?

Post by JohnDoeFR »

Ok thanks, going to put another NO-IP ddns for this then.

Thanks !
User avatar
Joulinar
Posts: 2638
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

If you already have a NoIP DDNS, you could use that one (if it's pointing to your home internet access)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply