diff options
Diffstat (limited to 'settings/ajax/removeRootCertificate.php')
-rw-r--r-- | settings/ajax/removeRootCertificate.php | 9 |
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); |