openssl_pkcs12_read

Supported Versions: PHP 5 >= 5.2.2, PHP 7, PHP 8
Parse a PKCS#12 Certificate Store into an array
<?php openssl_pkcs12_read(string $pkcs12, array &$certificates, string $passphrase): bool