phpseclib: X.509 Examples

Action:

Method:

<?php
require __DIR__ . '/vendor/autoload.php';

use phpseclib\File\X509;

$x509 = new X509();
$cert = $x509->loadX509('...'); // see google.crt

print_r($cert);
?>

Output:

(see phpseclib: X.509: Decoder to try phpseclib's X.509 decoder with your own certificates)

$cert: