summaryrefslogtreecommitdiffstats
path: root/settings/ajax/removeRootCertificate.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/ajax/removeRootCertificate.php')
-rw-r--r--settings/ajax/removeRootCertificate.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/settings/ajax/removeRootCertificate.php b/settings/ajax/removeRootCertificate.php
new file mode 100644
index 00000000000..0931138ad4b
--- /dev/null
+++ b/settings/ajax/removeRootCertificate.php
@@ -0,0 +1,9 @@
+<?php
+
+OCP\JSON::checkAppEnabled('files_external');
+OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
+
+$name = $_POST['cert'];
+$certificateManager = \OC::$server->getCertificateManager();
+$certificateManager->removeCertificate($name);