Skip to content

Include configuration explanation for intermediate TLS certificates - #686

Merged
stevvooe merged 3 commits into
distribution:masterfrom
rxbynerd:include-intermediate-tls-config-in-docs
Jul 13, 2015
Merged

stevvooe merged 3 commits into
distribution:masterfrom
rxbynerd:include-intermediate-tls-config-in-docs

Conversation

@rxbynerd

@rxbynerd rxbynerd commented Jul 9, 2015

Copy link
Copy Markdown
Contributor

Intermediate certificates are issued by TLS providers who themselves are
an intermediate of a certificate in the trust store. Therefore, to prove
the chain of trust is valid, you need to include their certificate as
well as yours when you send your certificate to the client.

Contrary to what I said in issue #683, distribution can handle these
certificate bundles like nginx. As discussed in #docker-distribution,
I have updated the deployment documentation (which recommends the use of
a TLS certificate from a provider) to include instructions on how to
handle the intermediate certificate when a user is configuring
distribution.

Closes #683.

Intermediate certificates are issued by TLS providers who themselves are
an intermediate of a certificate in the trust store. Therefore, to prove
the chain of trust is valid, you need to include their certificate as
well as yours when you send your certificate to the client.

Contrary to what I said in issue #683, distribution can handle these
certificate bundles like nginx. As discussed in #docker-distribution,
I have updated the deployment documentation (which recommends the use of
a TLS certificate from a provider) to include instructions on how to
handle the intermediate certificate when a user is configuring
distribution.

Signed-off-by: Luke Carpenter <[email protected]>
Comment thread docs/deploying.md Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove mention of third party service. Intermediate certificates are a common thing. Perhaps, a link to https://en.wikipedia.org/wiki/Intermediate_certificate_authorities would help here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'm not sure about linking to the wikipedia page, I doubt users are going to find themselves in a situation where they're not sure if they have an intermediate certificate.

@stevvooe

stevvooe commented Jul 9, 2015

Copy link
Copy Markdown
Collaborator

@moxiegirl PTAL

@moxiegirl

Copy link
Copy Markdown

looking

Comment thread docs/deploying.md Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rxbynerd thank you for the contribution. There are a few Markdown issues and minor punctuation. Also, I think some sentence structures can be improved;

--> https://gist.github.com/moxiegirl/d50d441aabc8b32d4e5e

A certificate issuer may supply you with an intermediate certificate. In this case, you must combine your certificate with the intermediate's to form a certificate bundle. You can do this using the cat command:

$ cat server.crt intermediate-certificates.pem > server.with-intermediate.crt

You then configure the registry to use your certificate bundle by providing the REGISTRY_HTTP_TLS_CERTIFICATE environment variable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds great - updated w/ content from your gist

@moxiegirl

Copy link
Copy Markdown

LGTM

1 similar comment
@stevvooe

Copy link
Copy Markdown
Collaborator

LGTM

stevvooe added a commit that referenced this pull request Jul 13, 2015
…-in-docs

Include configuration explanation for intermediate TLS certificates
@stevvooe
stevvooe merged commit 171ed44 into distribution:master Jul 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants