-
-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hi there! Thanks for making this :)
I'm trying to build a server that's really easy to setup. Doing acme using the HTTP-01 challenge can be highly automated. This is great for end-users, as they don't need to mess with their DNS settings. Some time ago I used this in combination with acme_lib
, but because I really wanted to ditch openssl as a dependency, I looked for a different crate and found instant-acme
!
Now I'd like to do something similar with instant-acme
, but I'm not quite sure how. I have a file mostly based on the example provided in your repo, and I know that I should use instant_acme::ChallengeType::Http01
. I also have a small actix server that could host a file during the setup, so I just need to get the files and filenames somewehere.
Possible solutions
setup_https_dir(path)
: I'd love to have an API that I can just point to a.well-known
directory on my filesystem. It writes what it needs to write, and I make sure the file is hosted.- Add
KeyAuthorization::Http01_Content
: a function that I can call that outputs the file contents for the challenge. magic_setup(path)
: Handle the entire Http01 challenge! Might make the lib too hefty, though. Perhaps behind a feature flag?
What do you think?