/// <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(); }
static void Main(string[] args) { EncryptARRControl.RefreshCertificate(); }