Skip to content

Instantly share code, notes, and snippets.

@bomale
Created November 10, 2021 19:42
Show Gist options
  • Save bomale/0371f0c2e38cc7323a5ba46922a1464e to your computer and use it in GitHub Desktop.
Save bomale/0371f0c2e38cc7323a5ba46922a1464e to your computer and use it in GitHub Desktop.
fix http challenge
#/usr/syno/sbin/syno-letsencrypt renew-all -vv
##OR https://letsdebug.net/ fill domain field and send form, click on "Show verbose information" (?debug=y)
##go to #LetsEncryptStaging-Debug section
#now copy param based on this format "The key authorization file from the server did not match this challenge "URI.ACCOUNT_TOKEN" != "SOMETHING WRONG"
#edit /usr/syno/share/nginx/LetsEncrypt.mustache
location ~ ^/.well-known/acme-challenge/(.*)$ {
default_type text/plain;
return 200 $1.ACCOUNT_TOKEN;
}
#save it and synosystemctl restart nginx
#reload command or letsdebug.net page (staging)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment