Skip to content

Commit

Permalink
Default crl expiry
Browse files Browse the repository at this point in the history
Ref: #17642
  • Loading branch information
JNProtzman committed Oct 27, 2022
1 parent 0423ffb commit c1cfa5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/logical/pki/storage.go
Expand Up @@ -1174,6 +1174,12 @@ func (sc *storageContext) getRevocationConfig() (*crlConfig, error) {
result.Version = 1
}

// Depending on client version, it's possible that the expiry is unset.
// This sets the default value to prevent issues in downstream code.
if result.Expiry == "" {
result.Expiry = defaultCrlConfig.Expiry
}

return &result, nil
}

Expand Down

0 comments on commit c1cfa5f

Please sign in to comment.