I am new to the topic off SSL signing and I try to generate a certificate for my OwnCloud server hosted via a Raspberry Pi at home. I followed the instructions in the OwnCloud documentations but it keeps providing an error.
I used to create a certificate via openssl request before (including some Apache config changes) but since it did not work out properly, I switchted to the letsencrypt way of doing it.
I ran this command: sudo /etc/letsencrypt/huberconsulting.ddns.net.sh
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for huberconsulting.ddns.net
Using the webroot path /var/www/letsencrypt for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Running post-hook command: service apache2 reload
Failed authorization procedure. huberconsulting.ddns.net (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://huberconsulting.ddns.net/.well-known/acme-challenge/_JN2T45j95bLg5FW1bMwpYMy5Tpjoi_vNHPlGAfp1BU: Error getting validation data
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A 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.
My web server is (include version): Don’t know
The operating system my web server runs on is (include version): Raspbian (latest version)
My hosting provider, if applicable, is: RaspberryPi at Home
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): Don’t know
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
I tried changing the path. So now cli.ini has the path > /var/www/html/ . However it still provides me with an error. Please find error below:
Saving debug log to /var/log/letsencrypt/letsencrypt.log Obtaining a new certificate Performing the following challenges: http-01 challenge for huberconsulting.ddns.net Using the webroot path /var/www/html for all unmatched domains. Waiting for verification... Cleaning up challenges Running post-hook command: service apache2 reload Failed authorization procedure. huberconsulting.ddns.net (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://huberconsulting.ddns.net/.well-known/acme-challenge/XAUgAs8g6-BQi8JN2FWxS_TMJgva_AEtZf4hAauhIGQ: "
_ To fix these errors, please make sure that your domain name was_
_ entered correctly and the DNS A record(s) for that domain_
_ contain(s) the right IP address._
I also tried to attach the log file, but "new users cannot attach files". Sorry
Hi Juergen, unfortunately I can't. File is loaded to the directory (while the acme-challange folder I had to create first of all). But when I navvigate to the link, I land on an OwnCloud page stating, that file was not found.