server/settings/ajax/removeRootCertificate.php
2014-08-31 10:47:50 +02:00

7 lines
189 B
PHP

<?php
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
$name = $_POST['cert'];
$certificateManager = \OC::$server->getCertificateManager();
$certificateManager->removeCertificate($name);