PHP code example of zimosworld / ssltools

1. Go to this page and download the library: Download zimosworld/ssltools library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zimosworld / ssltools example snippets


$certificate = '-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----';

$sslTools = SSLTools::getInstance();
$result = $sslTools->decodeCertificate( $certificate );

var_dump( $result->getCommonName() );