public void Execute(T command)
        {
            if (command.Out.CipherType == CipherType.Ec && command.ContentType == ContentType.Sec1)
            {
                string keyContent = formattingProvider.GetAsPem((IEcKey)command.Out);
                command.FileContent = encoding.GetBytes(keyContent);
            }

            decoratedCommand.Execute(command);
        }
        public void Execute(T command)
        {
            if (command.ContentType == ContentType.Pem)
            {
                string pemFormatted = formattingProvider.GetAsPem(command.Out);
                command.FileContent = encoding.GetBytes(pemFormatted);
            }

            decoratedCommand.Execute(command);
        }