protected override async Task OnCloseAsync(CancellationToken token) { if (_clientCertificateAuthenticator != null) { await SecurityUtils.CloseTokenAuthenticatorIfRequiredAsync(_clientCertificateAuthenticator, token); } CleanupServerCertificate(); }