summaryrefslogtreecommitdiffstats
path: root/settings/ajax/removeRootCertificate.php
blob: a3de035269e1ab34d09462e506bae547455e0af4 (plain)
1
2
3
4
5
6
7
<?php
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();

$name = $_POST['cert'];
$certificateManager = \OC::$server->getCertificateManager();
$certificateManager->removeCertificate($name);