Repository navigation
TLS CA Certs - #453
TLS CA Certs#453sthulb wants to merge 1 commit into
Conversation
|
@sthulb How is this different from the existing functionality? Could you make sure to modify the documentation accordingly? |
|
@stevvooe this would be like |
|
@sthulb How is that different from the existing functionality in the registry? How is it different from |
|
@stevvooe the new code creates a pool for |
|
@sthulb According to http://golang.org/pkg/crypto/tls/#Config, this removes the need for a client to provide the entire certificate chain. The configuration value should match the name |
|
Yep. It allows the server to verify the server's cert for the client. I'll add the extra docs. |
There was a problem hiding this comment.
To be clear, this should be called RootCAs to match up with the crypto/tls config.
|
@stevvooe updated. |
There was a problem hiding this comment.
Please follow Go's documentation guidelines. This should start with "RootCAs".
|
@stevvooe Fixed both points, thanks |
There was a problem hiding this comment.
"An array of paths to root CA files in x509 format used to verify client certificates."
There was a problem hiding this comment.
This change has nothing to do with client certs. It's to prove validation of the serverside certs
There was a problem hiding this comment.
Great. So, could you clarify it? Please see Go's documentation for clarification:
// RootCAs defines the set of root certificate authorities
// that clients use when verifying server certificates.
// If RootCAs is nil, TLS uses the host's root CA set.
If the documentation is not clear, the feature will not be added.
Signed-off-by: Simon Thulbourn <[email protected]>
|
@sthulb Could you please rebase this? I'd like to merge it for 2.1. cc @diogomonica @NathanMcCauley PTAL |
There was a problem hiding this comment.
Can you give me an usecase where we would use a different reader other than ioutil.ReadFile?
There was a problem hiding this comment.
Is this purely for testability?
|
I don't get why this functionality is needed. @sthulb even SSLCertificateChainFile is being deprecated in liu of adding the chain to SSLCertificateFile: http://www.bensprotips.com/2014/04/apache-sslcertificatechainfile-directive-deprecated-sslcertificatefile/ If we need to serve intermediates we should be hosting them in the same convention that web servers follow (host the chain in one file). What am I missing? |
|
@diogomonica @stevvooe Hi, sorry for the delay... This PR was to just allow users to present their CA cert with the server certificate for extra validation. It also gives the user the ability to trust more than just their registry, but their entire CA chain. Whilst this is similar to |
|
@sthulb sorry, still not getting the use-case. Can you make it a bit more explicit?
What are "users" in this sentence. Does this mean: including the whole CA chain in the certificate served to the clients connecting to the registry? And if so, can't we just include the whole chain in the server.pem?
How does the server configuration change in regards to this. This is a matter of the clients trusting a CA instead of the server certificate directly, no? |
I've added the ability to present the CA cert with the server certificates, this allow for greater trust between the server and client.