Change default intermediate issuer expiry from 5y to 3y
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -498,7 +498,7 @@ func (e *CAEngine) handleCreateIssuer(ctx context.Context, req *engine.Request)
|
|||||||
keySize = int(v)
|
keySize = int(v)
|
||||||
}
|
}
|
||||||
|
|
||||||
expiry := "43800h" // 5 years default
|
expiry := "26280h" // 3 years default
|
||||||
if v, ok := req.Data["expiry"].(string); ok && v != "" {
|
if v, ok := req.Data["expiry"].(string); ok && v != "" {
|
||||||
expiry = v
|
expiry = v
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ type IssuerConfig struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
KeyAlgorithm string `json:"key_algorithm"`
|
KeyAlgorithm string `json:"key_algorithm"`
|
||||||
KeySize int `json:"key_size"`
|
KeySize int `json:"key_size"`
|
||||||
Expiry string `json:"expiry"` // issuer cert expiry, e.g. "43800h" (5 years)
|
Expiry string `json:"expiry"` // issuer cert expiry, e.g. "26280h" (3 years)
|
||||||
MaxTTL string `json:"max_ttl"` // max leaf cert TTL, e.g. "8760h" (1 year)
|
MaxTTL string `json:"max_ttl"` // max leaf cert TTL, e.g. "8760h" (1 year)
|
||||||
CreatedBy string `json:"created_by"`
|
CreatedBy string `json:"created_by"`
|
||||||
CreatedAt time.Time `json:"created_at"`
|
CreatedAt time.Time `json:"created_at"`
|
||||||
|
|||||||
Reference in New Issue
Block a user