Show / Hide Table of Contents
Edit on GitHub

Trusting in custom certificates

By default, PKI Express will only allow operations performed by valid Brazilian certificates emmited by ICP-Brasil organization. However, if you want to use another kind of the certificate, it's required to configure the PkiExpressOperator class or any class that inherits from it.

Using Lacuna's testing certificates

In case you are testing your aplication using our mock certificates (see link), you have to set the trustLacunaTestRoot field to true to trust in these certificates:

$operator->trustLacunaTestRoot = true;

Using a custom certificate

In case you are using other kinds of certificates, you need to provide each certificate roots for the operator class.

$operator->addTrustedRoot('/path/to/root1.cer');
$operator->addTrustedRoot('/path/to/root2.cer');
$operator->addTrustedRoot('/path/to/root3.cer');
Back to top Copyright © 2015-2020 Lacuna Software