2017 © Pedro Peláez
 

library certainty

Up-to-date, verifiable repository for Certificate Authorities

image

paragonie/certainty

Up-to-date, verifiable repository for Certificate Authorities

  • Friday, July 27, 2018
  • by paragonie-scott
  • Repository
  • 10 Watchers
  • 149 Stars
  • 10,072 Installations
  • PHP
  • 5 Dependents
  • 1 Suggesters
  • 7 Forks
  • 1 Open issues
  • 14 Versions
  • 171 % Grown

The README.md

Certainty - CA-Cert Automation for PHP Projects

Build Status Latest Stable Version Latest Unstable Version License Downloads, (*1)

Automate your PHP projects' cacert.pem management. Read the blog post introducing Certainty., (*2)

Requires PHP 5.5 or newer. Certainty should work on any operating system (including Windows), although the symlink feature may not function in Virtualbox Shared Folders., (*3)

Who is Certainty meant for?

  • Open source developers with no control over where their code is deployed (e.g. Magento module developers).
  • People whose code might be deployed in weird environments with CACert bundles that are outdated or in unpredictable locations.
  • People who are generally forced between:
    1. Disabling certificate validation entirely, or
    2. Increasing their support burden to deal with corner-cases where suddenly HTTP requests are failing on weird systems

Certainty allows your software to "just work" (which is usually the motivation for disabling certificate validation) without being vulnerable to man-in-the-middle attacks., (*4)

Motivation

Many HTTP libraries require you to specify a file path to a cacert.pem file in order to use TLS correctly. Omitting this file means either disabling certificate validation entirely (which enables trivial man-in-the-middle exploits), connection failures, or hoping that your library falls back safely to the operating system's bundle., (*5)

In short, the possible outcomes (from best to worst) are as follows:, (*6)

  1. Specify a cacert file, and you get to enjoy TLS as it was intended. (Secure.)
  2. Omit a cacert file, and the OS maybe bails you out. (Uncertain.)
  3. Omit a cacert file, and it fails closed. (Connection failed. Angry customers.)
  4. Omit a cacert file, and it fails open. (Data compromised. Hurt customers. Expensive legal proceedings.)

Obviously, the first outcome is optimal. So we built Certainty to make it easier to ensure open source projects do this., (*7)

Installing Certainty

From Composer:, (*8)

composer require paragonie/certainty:^2

Certainty will keep certificates up to date via RemoteFetch, so you don't need to update Certainty library just to get fresh CA-Cert bundles. Update only for bugfixes (especially security fixes) and new features., (*9)

Non-Supported Use Case:

If you are not using RemoteFetch (which is strongly recommended that you do, and we only provide support for systems that do use RemoteFetch), then you want to use dev-master rather than a version constraint, due to the nature of CA Certificates., (*10)

If a major CA gets compromised and their certificates are revoked, you don't want to continue trusting these certificates., (*11)

Furthermore, in the event of avoiding RemoteFetch, you should be running composer update at least once per week to prevent stale CA-Cert files from causing issues., (*12)

Using Certainty

See the documentation., (*13)

What Certainty Does

Certainty maintains a repository of all the cacert.pem files since 2017, along with a sha256sum and Ed25519 signature of each file. When you request the latest bundle, Certainty will check both these values (the latter can only be signed by a key held by Paragon Initiative Enterprises, LLC) for each entry in the JSON value, and return the latest bundle that passes validation., (*14)

The cacert.pem files contained within are reproducible from Mozilla's bundle., (*15)

How is Certainty different from composer/ca-bundle?

The key differences are:, (*16)

  • Certainty will keep the CA-Cert bundles on your system up-to-date even if you do not run composer update.
  • We sign our CA-Cert bundles using Ed25519, and check every update into the PHP community Chronicle.

Support Contracts

If your company uses this library in their products or services, you may be interested in purchasing a support contract from Paragon Initiative Enterprises., (*17)

The Versions

27/07 2018

dev-master

9999999-dev

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

03/05 2018

v2.1.0

2.1.0.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

03/05 2018

dev-php-55

dev-php-55

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

10/04 2018

v2.0.1

2.0.1.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

09/04 2018

v2.0.0

2.0.0.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

09/04 2018

dev-v1-deprecated

dev-v1-deprecated

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

09/04 2018

v1.0.4

1.0.4.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

04/04 2018

v1.0.3

1.0.3.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

12/03 2018

v1.0.2

1.0.2.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

19/01 2018

v1.0.1

1.0.1.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

01/11 2017

v1.0.0

1.0.0.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

01/11 2017

v0.2.0

0.2.0.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

25/10 2017

v0.1.1

0.1.1.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure

25/10 2017

v0.1.0

0.1.0.0

Up-to-date, verifiable repository for Certificate Authorities

  Sources   Download

ISC

The Requires

 

The Development Requires

ssl tls ca pki cacert ed25519 certificate authority ca-cert cacert.pem ca-cert.pem public-key infractructure