Skip to content

Commit

Permalink
Rename param CLR to CRL
Browse files Browse the repository at this point in the history
  • Loading branch information
everesio committed Feb 24, 2024
1 parent df3ee1d commit 06c6aa6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func main() {
Key: "key.pem",
Cert: "cert.pem",
ClientCAs: "",
ClientCLR: "",
ClientCRL: "",
},
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type TLSServerFiles struct {
Key string `placeholder:"FILE" help:"Path to the server TLS key file."`
Cert string `placeholder:"FILE" help:"Path to the server TLS certificate file."`
ClientCAs string `placeholder:"FILE" name:"client-ca" help:"Optional path to server client CA file for client verification."`
ClientCLR string `placeholder:"FILE" name:"client-clr" help:"TLS X509 CLR signed be the client CA. If no revocation list is specified, only client CA is verified."`
ClientCRL string `placeholder:"FILE" name:"client-crl" help:"TLS X509 CRL signed be the client CA. If no revocation list is specified, only client CA is verified."`
}

type TLSClientConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion tls/server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func GetServerTLSConfig(logger *slog.Logger, conf *config.TLSServerConfig, opts
filesource.WithLogger(logger),
filesource.WithX509KeyPair(conf.File.Cert, conf.File.Key),
filesource.WithClientAuthFile(conf.File.ClientCAs),
filesource.WithClientCRLFile(conf.File.ClientCLR),
filesource.WithClientCRLFile(conf.File.ClientCRL),
filesource.WithRefresh(conf.Refresh),
)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tls/server/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestGetServerTLSConfig(t *testing.T) {
Key: bundle.ServerKey.Name(),
Cert: bundle.ServerCert.Name(),
ClientCAs: bundle.CACert.Name(),
ClientCLR: bundle.ClientCRL.Name(),
ClientCRL: bundle.ClientCRL.Name(),
},
}, tlsserver.WithTLSServerNextProtos([]string{"h2"}))
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion tls/server/source/pems.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (s ServerPEMs) ValidateCRLs() error {
}
}
if !ok {
return errors.New("server PEMs: CLR validation failure")
return errors.New("server PEMs: CRL validation failure")
}
}
return nil
Expand Down

0 comments on commit 06c6aa6

Please sign in to comment.