summaryrefslogtreecommitdiffstats
path: root/modules-available/webinterface/api.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2024-10-11 15:43:17 +0200
committerSimon Rettberg2024-10-11 15:43:17 +0200
commitccc7cf78a7ca8b3349c45706b8b03e1ed6bc44d6 (patch)
tree261b535912030ac41667ce954093dbe48ea5bc85 /modules-available/webinterface/api.inc.php
parent[webinterface] API: Check callbacks immediately on success (diff)
downloadslx-admin-ccc7cf78a7ca8b3349c45706b8b03e1ed6bc44d6.tar.gz
slx-admin-ccc7cf78a7ca8b3349c45706b8b03e1ed6bc44d6.tar.xz
slx-admin-ccc7cf78a7ca8b3349c45706b8b03e1ed6bc44d6.zip
[webinterface] Remove the 'off' option for HTTPS
As we always use a self-signed certificate for client communication, you cannot really turn off HTTPS, and explicitly generating another self-signed certificate for slx-admin is rather pointless. So internally, we actually remove the option for a self-signed certificate, and rename the "off" option to using a self-signed one.
Diffstat (limited to 'modules-available/webinterface/api.inc.php')
-rw-r--r--modules-available/webinterface/api.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/webinterface/api.inc.php b/modules-available/webinterface/api.inc.php
index 0b4fabdb..271ccc60 100644
--- a/modules-available/webinterface/api.inc.php
+++ b/modules-available/webinterface/api.inc.php
@@ -21,7 +21,7 @@ if (empty($newCert)) {
// Import will try to validate the certificate too
$task = WebInterface::tmImportCustomCert($newKey, $newCert, 'api',
- 'New HTTPS certificate uploaded via API from ' . $_SERVER['REMOTE_ADDR']);
+ 'Applying new HTTPS certificate uploaded via API from ' . $_SERVER['REMOTE_ADDR']);
$task = Taskmanager::waitComplete($task, 10000);
if (!Taskmanager::isTask($task)) {
http_send_status(500);