Skip to content

Commit

Permalink
Remove x509 config loading code (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasikpark authored Jun 23, 2022
1 parent 1a7c575 commit 527f953
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ func NewCertStateFromConfig(c *config.C) (*CertState, error) {
var err error

privPathOrPEM := c.GetString("pki.key", "")
if privPathOrPEM == "" {
// Support backwards compat with the old x509
//TODO: remove after this is rolled out everywhere - NB 2018/02/23
privPathOrPEM = c.GetString("x509.key", "")
}

if privPathOrPEM == "" {
return nil, errors.New("no pki.key path or PEM data provided")
Expand All @@ -79,11 +74,6 @@ func NewCertStateFromConfig(c *config.C) (*CertState, error) {
var rawCert []byte

pubPathOrPEM := c.GetString("pki.cert", "")
if pubPathOrPEM == "" {
// Support backwards compat with the old x509
//TODO: remove after this is rolled out everywhere - NB 2018/02/23
pubPathOrPEM = c.GetString("x509.cert", "")
}

if pubPathOrPEM == "" {
return nil, errors.New("no pki.cert path or PEM data provided")
Expand Down

0 comments on commit 527f953

Please sign in to comment.