alexpeattie / letsencrypt-fromscratch

A guide to creating a LetsEncrypt client from scratch in < 150 lines of Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid hardcoded URIs

alexpeattie opened this issue · comments

Use the directory (https://acme-v01.api.letsencrypt.org/directory) to get the new-* URIs, the up link in the new-cert response, and the headers of the new-reg for the agreement URL (?).

Improvement suggested by @kelunik

I ended up falling down a bit of a rabbit hole with this 🐰🕳 and had to write my own gem to parse Link headers. But the guide's all updated now, and no longer uses any hardcoded URIs, except for the directory 🎉 .