Пример #1
0
        /// <summary>
        /// Refresh and installs certificates on the host where this program runs
        /// Can take servername of other IIS server which hosts the websites and localhost is an ARR (loadbalancer)
        /// </summary>
        public static void RefreshCertificate()
        {
            var control = new EncryptARRControl();

            try
            {
                control.Worker();
            }
            catch
            {
            }
            control.MailRapport();
        }
Пример #2
0
 static void Main(string[] args)
 {
     EncryptARRControl.RefreshCertificate();
 }