Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomTLSInternalServer.AddTLSAcmeALPN

procedure AddTLSAcmeALPN(const aPriv: iMPPrivateKey; const aHostName: string; const aAuthorization: tBytes); overload;
Server-side only: registers a throwaway self-signed certificate (with the RFC 8737 acmeIdentifier extension) plus its private key so that a TLS handshake for aHostName offering the acme-tls/1 ALPN protocol is answered with it instead of a normal MyCerts leaf. This lets an application complete an ACME tls-alpn-01 domain-validation challenge without disturbing the real server certificate. This overload supplies the raw key-authorization bytes directly (aAuthorization); see RemoveTLSAcmeALPN to undo it once validated.
procedure AddTLSAcmeALPN(const aPriv: iMPPrivateKey; const aHostName: string; const aToken: string; const aThumbprint: string); overload;
Server-side only: same tls-alpn-01 challenge helper as the other overload, but computes the key authorization from the ACME token and account-key thumbprint (SHA-256 of token + '.' + thumbprint) for you.