ICertificateManager

interface OCP\ICertificateManager
Manage trusted certificates
Implemented by:OC\Security\CertificateManager
Source:lib/public/ICertificateManager.php#34

Methods

public OCP\ICertificateManager::listCertificates()
Returns all certificates trusted by the system
Source:lib/public/ICertificateManager.php#41
Returns:\OCP\ICertificate[]
Since:8.0.0
public OCP\ICertificateManager::addCertificate($certificate, $name)
Source:

lib/public/ICertificateManager.php#50

Parameters:
  • $certificate (string) the certificate data
  • $name (string) the filename for the certificate
Returns:

\OCP\ICertificate

Throws:

\Exception If the certificate could not get added

Since:

8.0.0 - since 8.1.0 throws exception instead of returning false

public OCP\ICertificateManager::removeCertificate($name)
Source:

lib/public/ICertificateManager.php#57

Parameters:
  • $name (string)
Returns:

bool

Since:

8.0.0

public OCP\ICertificateManager::getCertificateBundle()
Get the path to the certificate bundle
Source:lib/public/ICertificateManager.php#65
Returns:string
Since:8.0.0
public OCP\ICertificateManager::getAbsoluteBundlePath()
Get the full local path to the certificate bundle
Source:lib/public/ICertificateManager.php#73
Returns:string
Since:9.0.0