Elastacloud.AzureManagement.Fluent.Commands.Certificates.AddServiceCertificateCommand.AddServiceCertificateCommand C# (CSharp) Method

AddServiceCertificateCommand() private method

Sets the REST command parameters and takes a byte array converting certificate data to base64, the password has to match the password that was given when the certificate was first created
private AddServiceCertificateCommand ( byte certificateData, string pfxPassword, string hostedServiceName ) : System
certificateData byte
pfxPassword string
hostedServiceName string
return System
        internal AddServiceCertificateCommand(byte[] certificateData, string pfxPassword, string hostedServiceName)
        {
            Base64CertificateData = Convert.ToBase64String(certificateData);
            PfxPassword = pfxPassword;
            HostedServiceName = hostedServiceName;
            ServiceType = "services";
            OperationId = "hostedservices";
            HttpCommand = hostedServiceName + "/certificates";
            HttpVerb = HttpVerbPost;
        }