2017 © Pedro Peláez
 

library ssltools

Tools to decode/match SSL Certificate and check installed SSL Certificates

image

zimosworld/ssltools

Tools to decode/match SSL Certificate and check installed SSL Certificates

  • Tuesday, January 30, 2018
  • by Zimosworld
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SSL Tools

What is this?

SSL Tools is a set of tools that allows you to, (*1)

  • Decode PEM encoded certificate and certificate request
  • Confirm if a certificate/private key and certificate/certificate request (CSR) go together
  • Check to confirm if a SSL Certificate has been installed correctly and if it will be trusted in most major browsers

Installation

Install via composer, (*2)

composer require zimosworld/ssltools

Usage

Methods

Available methods that can be called:, (*3)

  • decodeCertificate( $certificate )
  • decodeCertificateRequest( $certificateRequest )
  • matchWithPrivateKey( $privateKey, $certificate )
  • matchWithCSR( $certificateRequest, $certificate )
  • checkInstalledCertificate( $url )

Usage Example

Basic usage example using the decodeCertificate method:, (*4)

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

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

var_dump( $result->getCommonName() );

Running Tests

Installation and Usage commands need to be run from the library root., (*5)

Installation

  1. Run composer install

Usage

  1. Run vendor/bin/phpunit

The Versions

30/01 2018

dev-master

9999999-dev

Tools to decode/match SSL Certificate and check installed SSL Certificates

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-openssl *

 

The Development Requires

by Jonathan Zimros

30/01 2018

v1.1.0

1.1.0.0

Tools to decode/match SSL Certificate and check installed SSL Certificates

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-openssl *

 

The Development Requires

by Jonathan Zimros

10/01 2018

v1.0.1

1.0.1.0

Tools to decode/match SSL Certificate and check installed SSL Certificates

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-openssl *

 

The Development Requires

by Jonathan Zimros

02/01 2018

v1.0.0

1.0.0.0

Tools to decode/match SSL Certificate and check installed SSL Certificates

  Sources   Download

MIT

The Development Requires

by Jonathan Zimros