diff options
Diffstat (limited to 'modules-available/webinterface/api.inc.php')
-rw-r--r-- | modules-available/webinterface/api.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/webinterface/api.inc.php b/modules-available/webinterface/api.inc.php index be374ed5..e368b56d 100644 --- a/modules-available/webinterface/api.inc.php +++ b/modules-available/webinterface/api.inc.php @@ -20,7 +20,8 @@ if (empty($newCert)) { } // Import will try to validate the certificate too -$task = WebInterface::tmImportCustomCert($newKey, $newCert); +$task = WebInterface::tmImportCustomCert($newKey, $newCert, 'api', + 'New HTTPS certificate uploaded via API from ' . $_SERVER['REMOTE_ADDR']); $task = Taskmanager::waitComplete($task, 10000); if (!Taskmanager::isTask($task)) { http_send_status(500); |