Skip to content
This repository was archived by the owner on Dec 20, 2020. It is now read-only.
This repository was archived by the owner on Dec 20, 2020. It is now read-only.

Chained certificate handling in app-certificate manager is problematic. #13

@benoitg

Description

@benoitg

In the process of fixing #12, it became obvious that the de-facto api defined by https://github.com/clearos/app-certificate-manager isn't really future-proof.

The de-facto API in the certificate manager was clearly to support the old Apache style:

  • $cert_files[$certificate]['certificate-filename'] (Corresponds to Apache SSLCertificateFile)
  • $cert_files[$certificate]['key-filename'] (Corresponds to Apache SSLCertificateKeyFile)
  • $cert_files[$certificate]['intermediate-filename'] (Corresponds to Apache SSLCertificateChainFile, which is deprecated in 2.4.8 https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslcertificatefile)

To which I added:

  • $cert_files[$certificate]['fullchain-filename'] (Corresponds to Apache SSLCertificateFile for Apache >2.4.8, and many others: nginx, openfire, etc.)

It seems to me the certificate manager should expose a better API, not rely on the different apps sorting out what they need from keys that may, or may not be present.

Note that missing intermediate certificates by using cert.pem insteat of fullchain.pem causes especially hard to diagnose problems, where sometimes browsers work fine because they cached let's encrypt chains, but things like wget throw 'Unable to locally verify the issuer's authority.' or similar errors.

@pcbaldwin, @bchambers As discussed with ben this morning, I'd like to hear your thoughts on this, while relatively few apps use let's encrypt so far, and it's still time to abstract this out in the certificate manager. Ultimately this is a generic SSL issue, it just so happens that openfire exposed it first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions