Skip to content

Commit

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

// 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 281bef0

Please sign in to comment.