Add client certificate CA option to authenticate with client certs

Add the ability to authenticate against multiple client CA certificates.

Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
This commit is contained in:
Simon Thulbourn 2015-03-20 15:19:07 +00:00
parent d3bbb078c1
commit c8f3800f1c
4 changed files with 71 additions and 1 deletions

View file

@ -57,6 +57,10 @@ type Configuration struct {
// contain the private portion for the file specified in
// Certificate.
Key string `yaml:"key,omitempty"`
// Specifies the CA certs for client authentication
// A file may contain multiple CA certificates encoded as PEM
ClientCAs []string `yaml:"clientcas,omitempty"`
} `yaml:"tls,omitempty"`
// Debug configures the http debug interface, if specified. This can