The Mysterious Let's Encrypt API
I'm writing this because, frankly, I cannot believe how little information there is out there on interacting with Let's Encrypt programmatically. Hopefully what follows can save you some pain and suffering. tldr; Here's a working Node.js/JavaScript example I built demo'ing