aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax/removeRootCertificate.php
blob: 0931138ad4b5b0f58b0f9588e913af2931df7ce7 (plain)
1
2
3
4
5
6
7
8
9
<?php

OCP\JSON::checkAppEnabled('files_external');
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();

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