openssl_pkcs7_verify

Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Verifies the signature of an S/MIME signed message
<?php openssl_pkcs7_verify(    string $input_filename,    int $flags,    ?string $signers_certificates_filename = null,    array $ca_info = [],    ?string $untrusted_certificates_filename = null,    ?string $content = null,    ?string $output_filename = null): bool|int