nextcloud/settings/ajax/removeRootCertificate.php

8 lines
197 B
PHP

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