예제 #1
0
        public void AddNewRegistrationAndAcceptTOS(string contact)
        {
            if (UsePowershell)
            {
                powershellManager.NewRegistration(contact);

                powershellManager.AcceptRegistrationTOS();
            }
            else
            {
                var cmd = new ACMESharp.POSH.NewRegistration();
                cmd.Contacts = new string[] { contact };
                cmd.ExecuteCommand();

                var tosCmd = new ACMESharp.POSH.UpdateRegistration();
                tosCmd.AcceptTos = new System.Management.Automation.SwitchParameter(true);
                tosCmd.ExecuteCommand();
            }
        }
예제 #2
0
        public void AddNewRegistration(string contacts)
        {
            powershellManager.NewRegistration(contacts);

            powershellManager.AcceptRegistrationTOS();
        }