public async Task <IActionResult> CreateKeys([FromForm] CreateNewKeysModel model)
        {
            if (model.ExpirationTime < DateTime.UtcNow)
            {
                return(PartialView(nameof(CreateKeys)));
            }

            uint lifeTime = (uint)(model.ExpirationTime - DateTime.UtcNow).TotalSeconds;
            var  nodeKeys = await _keysService.CreateNewNodeKeysAsync(NodeSettings.Configs.Node.Id, model.KeyType, lifeTime).ConfigureAwait(false);

            await _appServiceProvider.NodeNoticeService.SendNewNodeKeysNodeNoticeAsync(nodeKeys.PublicKey, nodeKeys.SignPublicKey, nodeKeys.KeyId, nodeKeys.ExpirationTime).ConfigureAwait(false);

            await LicensorClient.Instance.AddNewKeyAsync(nodeKeys.PublicKey, nodeKeys.SignPublicKey, nodeKeys.KeyId, nodeKeys.ExpirationTime, nodeKeys.GenerationTime, false).ConfigureAwait(false);

            NodeData.Instance.SetNodeKeys(nodeKeys);
            return(Redirect($"{nameof(Index)}#keys-info"));
        }