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 }); } }
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 }); } }