in openssl/openssl.php [251:306]
function openssl_x509_read(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate) {}
/**
* @param string $certificate
* @param string $digest_algo [optional] hash method
* @param bool $binary [optional]
* @return string|false <b>FALSE</b> on failure
* @since 5.6
*/
function openssl_x509_fingerprint(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate, string $digest_algo = 'sha1', bool $binary = false): string|false {}
/**
* Free certificate resource
* @link https://php.net/manual/en/function.openssl-x509-free.php
* @param OpenSSLCertificate|resource|string $certificate
* @return void
*/
#[Deprecated(since: '8.0')]
function openssl_x509_free(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate"], default: "resource|string")] $certificate): void {}
/**
* Parse an X509 certificate and return the information as an array
* @link https://php.net/manual/en/function.openssl-x509-parse.php
* @param OpenSSLCertificate|string|resource $certificate
* @param bool $short_names [optional] <p>
* <i>shortnames</i> controls how the data is indexed in the
* array - if <i>shortnames</i> is true (the default) then
* fields will be indexed with the short name form, otherwise, the long name
* form will be used - e.g.: CN is the shortname form of commonName.
* </p>
* @return array|false The structure of the returned data is (deliberately) not
* yet documented, as it is still subject to change.
*/
#[ArrayShape([
'name' => 'string',
'subject' => 'string',
'hash' => 'string',
'issuer' => 'string',
'version' => 'int',
'serialNumber' => 'string',
'serialNumberHex' => 'string',
'validFrom' => 'string',
'validTo' => 'string',
'validFrom_time_t' => 'int',
'validTo_time_t' => 'int',
'alias' => 'string',
'signatureTypeSN' => 'string',
'signatureTypeLN' => 'string',
'signatureTypeNID' => 'int',
'purposes' => 'array',
'extensions' => 'array'
])]
function openssl_x509_parse(
#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertificate|string"], default: "resource|string")] $certificate,
#[PhpStormStubsElementAvailable(from: '5.3', to: '7.0')] bool $shortname,
#[PhpStormStubsElementAvailable(from: '7.1')] bool $short_names = true
): array|false {}