This code belongs to this blog post https://blog.helsinki-systems.de/sophos-xgs-lets-encrypt/ where you find the setup instructions and an explanation of what the code is doing.
if you have any issues with this lets encrypt setup feel free to open an issue and let me know what's the problem.
This is a work in progress so you should check every 30 days or so if the certificates have been renewed.
This code was publish by Fritz Otlinghaus Helsinki Systems GmbH helsinki-systems.de