Documentation

OpenSslProcessPkcs7Reader
in package
implements Pkcs7Reader

Interfaces, Classes, Traits and Enums

Pkcs7Reader

Table of Contents

__construct()  : mixed
readUnverified()  : string
Read data from pkcs#7 container trusting any certificate bundled inside.
readUsingOnlyTrustedCerts()  : string
Ignore any bundled certificates and verify pkcs#7 container using only the provided certificates which themselves will no be verified.

Methods

readUnverified()

Read data from pkcs#7 container trusting any certificate bundled inside.

public readUnverified(string $ber) : string
Parameters
$ber : string

BER-encoded (NOT guaranteed to be DER-encoded) pkcs#7 container

Return values
string

The binary data

readUsingOnlyTrustedCerts()

Ignore any bundled certificates and verify pkcs#7 container using only the provided certificates which themselves will no be verified.

public readUsingOnlyTrustedCerts(string $ber, string ...$certificates) : string
Parameters
$ber : string

BER-encoded (NOT guaranteed to be DER-encoded) pkcs#7 container

$certificates : string

Trusted (will not be verified) certificates (pem-encoded or paths to pem-encoded files) to search signer's certificate amongst

Return values
string

The binary data after verifications

Search results