methodTsmStreamSecII.AddTLSAcmeALPN
procedure AddTLSAcmeALPN(const aPriv: iMPPrivateKey; const aHostName: string; const aAuthorization: tBytes); overload;
Server-only: install an ACME tls-alpn-01 challenge response. Generates a short-lived self-signed certificate for aHostName carrying the acmeIdentifier extension (aAuthorization = the key authorization digest) and registers the 'acme-tls/1' ALPN so the ACME CA's validation connection is answered with it. Used when obtaining/renewing a Let's-Encrypt-style certificate over the same listening port. aPriv may be nil to reuse an already-loaded server key.
procedure AddTLSAcmeALPN(const aPriv: iMPPrivateKey; const aHostName: string; const aToken: string; const aThumbprint: string); overload;
Server-only: convenience overload that computes the key authorization digest for you from the ACME challenge aToken and the account-key aThumbprint (SHA-256 of token.thumbprint), then calls the tBytes overload above.