protected void EnableForServices(X509Certificate2 cert, AllowedServices services) { try { ManageExchangeCertificate.EnableForServices(cert, services, this.webSiteName, !this.DoNotRequireSsl, (ITopologyConfigurationSession)base.DataSession, this.localServer, null, false, this.NetworkServiceAllowed); } catch (IISNotInstalledException) { base.WriteError(new ArgumentException(Strings.IISNotInstalled, "Services"), ErrorCategory.InvalidArgument, null); } catch (InvalidOperationException exception) { base.WriteError(exception, ErrorCategory.ObjectNotFound, null); } catch (LocalizedException exception2) { base.WriteError(exception2, ErrorCategory.NotSpecified, null); } }
internal static Dictionary <AllowedServices, LocalizedString> EnableForServices(X509Certificate2 cert, AllowedServices services, bool requireSsl, ITopologyConfigurationSession dataSession, Server server, List <LocalizedString> warningList, bool allowConfirmation, bool forceNetworkService) { return(ManageExchangeCertificate.EnableForServices(cert, services, null, requireSsl, dataSession, server, warningList, allowConfirmation, forceNetworkService)); }