openssl_cms_verify Verify a CMS signature

发表日期:2021-07-01 08:55:21 | 来源: | | 浏览(522) 分类:OpenSSL 函数

openssl_cms_verify

(PHP 8)

openssl_cms_verifyVerify a CMS signature

说明

openssl_cms_verify(
    string $input_filename,
    int $flags = 0,
    string|null $certificates = null,
    array $ca_info = [],
    string|null $untrusted_certificates_filename = null,
    string|null $content = null,
    string|null $pk7 = null,
    string|null $sigfile = null,
    int $encoding = OPENSSL_ENCODING_SMIME
): bool

This function verifies a CMS signature, either attached or detached, with the specified encoding.

参数

input_filename

The input file.

flags

Flags to pass to cms_verify().

certificates

A file with the signer certificate and optionally intermediate certificates.

ca_info

An array containing self-signed certificate authority certificates.

untrusted_certificates_filename

A file containing additional intermediate certificates.

content

A file pointing to the content when signatures are detached.

pk7

sigfile

A file to save the signature to.

encoding

The encoding of the input file. One of OPENSSL_CMS_SMIME, OPENSLL_CMS_DER or OPENSSL_CMS_PEM.

返回值

成功时返回 true, 或者在失败时返回 false

集速网 copyRight © 2015-2022 宁ICP备15000399号-1 宁公网安备 64010402001209号
与其临渊羡鱼,不如退而结网
欢迎转载、分享、引用、推荐、收藏。