Help to get a certificate

i want to get a free SSL certificate for my domain using Let's Encrypt, If you could help me with this setup or share a working configuration example, that would be a huge help.i(m using 22.04 lts server hosting provider :duckdns

Are you able to answer any of the other questions from the form you were shown? The more info we have the better we can help.

Also, have you reviewed this yet: Getting Started - Let's Encrypt

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know):

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

3 Likes

My domain is: chaimamdm.duckdns.org

I ran this command: sudo certbot --nginx -d chaimamdm.duckdns.org

It produced this output:

M


y web server is (include version):ubuntu server 22.04 LTS (oracle VM virtual BOX)

The operating system my web server runs on is (include version): ubuntu server 22.04 lts Codename: jammy

My hosting provider, if applicable, is: duckdns

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):no i'm not using a control panel ( if u mean a nginx account)

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):certbot 1.21.0

Thanks for that extra info.

The --nginx option you chose uses an HTTP Challenge. Let's Encrypt sends this challenge to your server to prove you control that domain name. If successful LE will issue your certificate. The HTTP Challenge requires your nginx server to respond to an HTTP request on port 80.

As shown in the error message the request from the LE Server to you "timed out". You should try reaching your domain from outside your own network and make sure an HTTP request succeeds. Right now not even your home page can be displayed from the public internet. The connection problem is not unique to Let's Encrypt. Use a mobile phone with wifi disabled to test.

Or, use the https://letsdebug.net test site. It is very helpful when setting up new sites.

Check firewalls, check your router settings, make sure any port forwarding or NAT is set correctly. If using DDNS make sure it is using the right IP. There are many things to review to get communications setup.

4 Likes

how can i check router settings by the way i'm using virtual machine with server 22.04 lts and i'm using a bridge network and the ip that i'm using in duckdns is the public ip ( i get it from the command curl ifconfig.me)

If you have a router there should be a manual or instructions on configuring it. A router is common for residential setups. For other systems you may have other gear. For residential setups you should make sure your ISP allows inbound requests to you on port 80. Some do not.

We are not a general purpose forum to help with communications setup. Once you get HTTP requests to your domain (server) working from the public internet you could try again to get a certificate.

As I mentioned, the Let's Debug site is very helpful to run tests after you make changes. Or use a mobile phone with wifi off or some other device outside your own network to test.

2 Likes

Why did you create another thread when you already had this one?

4 Likes