Unable to create ssl certificate for nginx

When I try to install SSL certificate I see this error. Not sure how to proceed further.Help please.

when i try to execute this command “letsencrypt certonly -a webroot --webroot-path=/var/www/letsencrypt --rsa-key-size 4096 -d demcloudhome.ddns.net” i get this error below. Not sure how to resolve this. I have opened port 80 and 443 on my router. This is for nextcloud with nginx on ordroid c2.

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for demcloudhome.ddns.net
Using the webroot path /var/www/letsencrypt for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. demcloudhome.ddns.net (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://demcloudhome.ddns.net/.well-known/acme-challenge/-WijMIGmOWXXibaiS7C5opzZpcfg-OU3MDZjt_KlDqc: Timeout


  • The following errors were reported by the server:

    Domain: demcloudhome.ddns.net
    Type: connection
    Detail: Fetching

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you’re using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

  • Your account credentials have been saved in your Certbot
    configuration directory at /etc/letsencrypt. You should make a
    secure backup of this folder now. This configuration directory will
    also contain certificates and private keys obtained by Certbot so
    making regular backups of this folder is ideal.

It seems that port 80 doesn't reach anything - the timeout is confirmed:
wget http://demcloudhome.ddns.net/
--2017-10-11 00:48:17-- http://demcloudhome.ddns.net/
Resolving demcloudhome.ddns.net (demcloudhome.ddns.net)...
Connecting to demcloudhome.ddns.net (demcloudhome.ddns.net)||:80... failed: Connection timed out.

Slightly unrelated... but port 443 connects but doesn't provide a cert (yet):
shows: "No secure protocols supported"
openssl s_client -connect demcloudhome.ddns.net:443
no peer certificate available
No client certificate CA names sent
SSL handshake has read 0 bytes and written 176 bytes
Verification: OK
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Protocol : TLSv1.2
Cipher : 0000
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1507697415
Timeout : 7200 (sec)
Verify return code: 0 (ok)
Extended master secret: no

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