\App\CoreModule\ModelsCertificateManager

Tool for managing certificates

Summary

Methods
Properties
Constants
checkIssuer()
checkPrivateKey()
getPrivateKey()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

checkIssuer()

checkIssuer(string  $caCertificate, string  $certificate) : bool

Checks if a certificate corresponds to a CA certificate

Parameters

string $caCertificate

CA certificate

string $certificate

Certificate

Returns

bool —

Is a certificate corresponds to a CA certificate?

checkPrivateKey()

checkPrivateKey(string  $cert, string  $pKey, string  $password = '') : bool

Checks if a private key corresponds to a certificate

Parameters

string $cert

Certificate

string $pKey

Private key

string $password

Password for private key

Returns

bool —

Is a private key corresponds to a certificate?

getPrivateKey()

getPrivateKey(string  $key, string  $password = '') : string|bool

Gets private key

Parameters

string $key

Private key

string $password

Password for private key

Returns

string|bool —

Parsed private key or false