Submitted by Shokas on Mon, 01/02/2017 - 02:43
Virtualmin cannot create new or renew certificate. I tried deleting .well-known directory, but nothing changed. Also I tried to create .well-known and .well-known/acme-challenge manually with owner rights of root or actual user, but none of that worked.
Requesting a certificate for y.x.com from Let's Encrypt ..
.. request failed : mkdir failed : mkdir: cannot create directory ‘/home/x/public_html/public/.well-known/acme-challenge’: Permission denied
Status:
Closed (fixed)
Comments
Submitted by andreychek on Mon, 01/02/2017 - 09:39 Comment #1
Howdy -- what is the output of these commands:
ls -ld /home/x
ls -ld /home/x/public_html
ls -ld /home/x/public_html/public
Submitted by Shokas on Mon, 01/02/2017 - 15:01 Comment #2
Changed 'x' to 'website'... Output for commands down below:
drwxr-x--- 14 website website 4096 Sau 2 09:09 /home/website/
drwxr-x--- 12 website website 4096 Sau 2 09:15 /home/website/public_html/
drwxr-xr-x 7 website website 4096 Bal 6 2016 /home/website/public_html/public
Submitted by Shokas on Mon, 01/02/2017 - 15:13 Comment #3
I just realised that webmin version wasn't newest and had to do manual refresh on packages available for an update to show up. After update, deleted .well-known folder and requested new certificate - it worked without problems.
THANKS andreychek. ;)
Submitted by Shokas on Mon, 01/02/2017 - 15:13 Comment #4
Submitted by andreychek on Mon, 01/02/2017 - 15:39 Comment #5
That's fantastic, I'm glad that's working for you now.. thanks for letting us know what fixed it!
Submitted by Anonymous on Mon, 01/16/2017 - 15:46 Comment #6
Automatically closed - issue fixed for 2 weeks with no activity.