Example #1
0
        protected override void PerformOperation(IServiceManagement channel)
        {
            var input = new CertificateFile()
            {
                CertificateFormat = Cert_format,
                Password          = Cert_Password,
            };

            input.Data = Convert.ToBase64String(File.ReadAllBytes(Cert_file));
            Console.WriteLine("Adding Certificate");
            channel.AddCertificates(SubscriptionId, HostedServiceName, input);
        }
Example #2
0
        protected override void PerformOperation(IServiceManagement channel)
        {
            var input = new CertificateFile()
            {
                CertificateFormat = Cert_format,
                Password = Cert_Password,
            };

            input.Data = Convert.ToBase64String(File.ReadAllBytes(Cert_file));
            Console.WriteLine("Adding Certificate");
            channel.AddCertificates(SubscriptionId, HostedServiceName, input);
        }