Nextcloud PHP API (master)

ICertificateManager

Manage trusted certificates

Tags
since
8.0.0

Table of Contents

Methods

addCertificate()  : ICertificate
getAbsoluteBundlePath()  : string
Get the full local path to the certificate bundle
getCertificateBundle()  : string
Get the path to the certificate bundle
listCertificates()  : array<string|int, ICertificate>
Returns all certificates trusted by the system
removeCertificate()  : bool

Methods

addCertificate()

public addCertificate(string $certificate, string $name) : ICertificate
Parameters
$certificate : string

the certificate data

$name : string

the filename for the certificate

Tags
throws
Exception

If the certificate could not get added

since
8.0.0
  • since 8.1.0 throws exception instead of returning false
Return values
ICertificate

getAbsoluteBundlePath()

Get the full local path to the certificate bundle

public getAbsoluteBundlePath() : string
Tags
since
9.0.0
Return values
string

getCertificateBundle()

Get the path to the certificate bundle

public getCertificateBundle() : string
Tags
since
8.0.0
Return values
string

removeCertificate()

public removeCertificate(string $name) : bool
Parameters
$name : string
Tags
since
8.0.0
Return values
bool

        
On this page

Search results