Ejemplo n.º 1
0
        public object CheckHttpsCertificate()
        {
            try
            {
                return(new
                {
                    success = true,
                    exist = HttpsManager.IsExistHttpsCertificate()
                });
            }
            catch (Exception exception)
            {
                LogManager.GetLogger(typeof(HttpsManager)).Error(exception);

                return(new
                {
                    success = false,
                    message = exception.Message
                });
            }
        }
Ejemplo n.º 2
0
        public object UploadHttpsCertificate(string filePath, string password)
        {
            try
            {
                HttpsManager.UploadCertificate(filePath, password);

                return(new
                {
                    success = true
                });
            }
            catch (Exception exception)
            {
                LogManager.GetLogger(typeof(HttpsManager)).Error(exception);

                return(new
                {
                    success = false,
                    message = exception.Message
                });
            }
        }