-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement and offer alternate chains (RFC 8555 7.4.2) (#234)
Allows to offer alternate chains for a certificate according to RFC8555, Section 7.4.2. For this, multiple root and intermediate certs are created (all with the same intermediate private key), and `alternative` relation links are offered during certificate download. A `/roots/` endpoint has also been added to allow downloading the alternate roots (`/roots/0`, `/roots/1` etc.); Pebble also provides `link` headers for its alternate forms in responses to certificate requests. This feature can be enabled by setting the environment variable `PEBBLE_ALTERNATE_ROOTS` to something larger than 0. For example, with `PEBBLE_ALTERNATE_ROOTS=2`: ```.sh $ curl -i -k https://0.0.0.0:14000/root HTTP/2 200 cache-control: public, max-age=0, no-cache content-type: application/pem-certificate-chain; charset=utf-8 link: <https://0.0.0.0:14000/dir>;rel="index" link: <https://0.0.0.0:14000/roots/0>;rel="alternate" link: <https://0.0.0.0:14000/roots/1>;rel="alternate" content-length: 1107 date: Sun, 12 May 2019 15:05:37 GMT -----BEGIN CERTIFICATE----- ... $ curl -i -k https://0.0.0.0:14000/roots/0 HTTP/2 200 cache-control: public, max-age=0, no-cache content-type: application/pem-certificate-chain; charset=utf-8 link: <https://0.0.0.0:14000/dir>;rel="index" link: <https://0.0.0.0:14000/root>;rel="alternate" link: <https://0.0.0.0:14000/roots/0>;rel="alternate" content-length: 1107 date: Sun, 12 May 2019 15:06:07 GMT -----BEGIN CERTIFICATE----- ... ```
- Loading branch information
1 parent
afbe2db
commit 0abe052
Showing
5 changed files
with
230 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.