Skip to content

mk-j/PHP_CT_Reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP_CT_Reader

Simple, lightweight certificate transparency log parser for PHP.

This code will allow to one to download and parse SSL certificates from a public CT log.

Stores CT log entries in groups in .gz files

Quick PHP CLI example:

class CTParser extends CTReader
{
	public function parseCert($cert_pem)
	{
		$parsed = openssl_x509_parse($cert_pem);
		echo json_encode($parsed['subject']['CN'])."\n";
	}
}

$ct = new CTParser('https://ct.googleapis.com/pilot/');
$ct->downloadNextRange($i=0);//grab next batch
$ct->parseFileList();
exit(0);

More on certificate transparency:

About

Simple certificate transparency parser for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages