Ubuntu 18.04 snap package
as root
letsencrypt is installed
command:
root@DELLXEON:~# nextcloud.enable-https lets-encrypt
In order for Letās Encrypt to verify that you actually own the
domain(s) for which youāre requesting a certificate, there are a
number of requirements of which you need to be aware:
-
In order to register with the Letās Encrypt ACME server, you must
agree to the currently-in-effect Subscriber Agreement located
here:https://letsencrypt.org/repository/
By continuing to use this tool you agree to these terms. Please
cancel now if otherwise. -
You must have the domain name(s) for which you want certificates
pointing at the external IP address of this machine. -
Both ports 80 and 443 on the external IP address of this machine
must point to this machine (e.g. port forwarding might need to be
setup on your router).
Have you met these requirements? (y/n) y
Please enter an email address (for urgent notices or key recovery): editedout@example.com
Please enter your domain name(s) (space-separated): example.com
Attempting to obtain certificatesā¦ error running certbot:
An unexpected error occurred:
IOError: [Errno 13] Permission denied: ā/etc/letsencrypt/cli.iniā
Please see the logfile ā/tmp/tmpyo06LUā for more details.
root@DELLXEON:~#
strace did not lend any clues.
write(1, āAttempting to obtain certificateāā¦, 37Attempting to obtain certificatesā¦ ) = 37
pipe([3, 4]) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f1e852c29d0) = 7482
close(4) = 0
read(3, āAn unexpected error occurred:\nIOāā¦, 128) = 128
read(3, āmltkzcā for more details.\nā, 128) = 26
read(3, āā, 128) = 0
ā SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7482, si_uid=0, si_status=1, si_utime=0, si_stime=0} ā
rt_sigreturn({mask=[]}) = 0
close(3) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 7482
fcntl(1, F_DUPFD, 10) = 11
close(1) = 0
fcntl(11, F_SETFD, FD_CLOEXEC) = 0
dup2(2, 1) = 1
write(1, āerror running certbot:\nā, 23error running certbot:
) = 23
dup2(11, 1) = 1
close(11) = 0
fcntl(1, F_DUPFD, 10) = 11
close(1) = 0
fcntl(11, F_SETFD, FD_CLOEXEC) = 0
dup2(2, 1) = 1
write(1, ā\nā, 1
) = 1
dup2(11, 1) = 1
close(11) = 0
fcntl(1, F_DUPFD, 10) = 11
close(1) = 0
fcntl(11, F_SETFD, FD_CLOEXEC) = 0
dup2(2, 1) = 1
write(1, āAn unexpected error occurred:\nIOāā¦, 154An unexpected error occurred:
IOError: [Errno 13] Permission denied: ā/etc/letsencrypt/cli.iniā
Please see the logfile ā/tmp/tmpmltkzcā for more details.
) = 154
dup2(11, 1) = 1
close(11) = 0
exit_group(1) = ?
+++ exited with 1 +++
Log file is empty