nextcloud/settings/ajax/removeRootCertificate.php

8 lines
189 B
PHP

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