# Help creating certificate for nextcloud with Duckdns and Nging

**URL:** <https://dietpi.com/forum/t/help-creating-certificate-for-nextcloud-with-duckdns-and-nging/22046>\
**Category:** Troubleshooting\
**Tags:** nextcloud, letsencrypt\
**Created:** [28 November 2024 00:04 UTC](https://dietpi.com/forum/t/help-creating-certificate-for-nextcloud-with-duckdns-and-nging/22046 "2024-11-28T00:04:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Techttv](https://dietpi.com/forum/user_avatar/dietpi.com/techttv/32/7169_2.png) [@Techttv](https://dietpi.com/forum/u/Techttv)\
**Post date:** [28 November 2024 00:04 UTC](https://dietpi.com/forum/t/help-creating-certificate-for-nextcloud-with-duckdns-and-nging/22046/1 "2024-11-28T00:04:16Z")

</div>

Hi,  
new to DietPi but used to Raspbian,  
I’m trying to get a certificate for my nextcloud server. As dynDns I’m using Duckdns because I always used it without many problems.  
I setup Nextcloud with nginx.  
I’m trying to get a certificate with letsencrypt using the built-in command but it always fail at the secondary validation.  
Here’s the log:

```auto

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: tomms.duckdns.org
  Type: connection
  Detail: During secondary validation: 79.22.168.21: Fetching http://tomms.duckdns.org/.well-known/acme-challenge/5ZcAr6iI6Rx-QThWh3ei9vnvS8-zsVkxDDjVqds1QaY: Timeout during connect (likely firewall problem)

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

```

I never had problems with Duckdns so I’m assuming it’s not the case, it could be nginx but idk. However the port forwarding it’s working right so it’s not the case.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [1 December 2024 11:58 UTC](https://dietpi.com/forum/t/help-creating-certificate-for-nextcloud-with-duckdns-and-nging/22046/2 "2024-12-01T11:58:39Z")

</div>

first thing to check if your external IP address is matching between these 3 places

- Duckdns web site
- [https://whatsmyip.com/](https://whatsmyip.com/)
- external IP you see inside your router settings

and to double check, if port forwarding on port 80/443 TCP has been correctly setup, pointing to your DietPi device.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [28 May 2025 23:58 UTC](https://dietpi.com/forum/t/help-creating-certificate-for-nextcloud-with-duckdns-and-nging/22046/3 "2025-05-28T23:58:41Z")

</div>

Closed on 28 May 2025 23:58 UTC

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.
