Import std.net.acme_client
AcmeTokens
class
Public Shared Class AcmeTokens
The key authorizations of an ACME client's HTTP-01 challenges, by token, which a server gives for /.well-known/acme-challenge/, through Answer, from any thread.
Examples
Const tokens = AcmeTokens()
tokens.Publish("abc", "abc.thumbprint")
Expect(tokens.Answer("/.well-known/acme-challenge/abc") == "abc.thumbprint")
tokens.Withdraw("abc")
Expect(tokens.Answer("/.well-known/acme-challenge/abc") == Null)std/net/acme_client.fb, line 44
-
A new AcmeTokens, with none published.
-
Gives
token's challenge itskeyAuthorization, which Answer gives until it's withdrawn. -
Takes
token's key authorization out, once its challenge is done. -
What a request for
pathis answered with: the key authorization for /.well-known/acme-challenge/, or Null for another path, or a token it hasn't.
Report an issue with this page or with FutureBlitz on GitHub.