Skip to content

Commit

Permalink
add notafter field
Browse files Browse the repository at this point in the history
  • Loading branch information
rculpepper committed Dec 18, 2024
1 parent 78f2eda commit 6dc6b70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ const (
FieldEabKey = "key"
FieldAcmeDirectory = "acme_directory"
FieldEabId = "eab_id"
FieldNotAfter = "not_after"
/*
common environment variables
*/
Expand Down
8 changes: 8 additions & 0 deletions vault/resource_pki_secret_backend_root_sign_intermediate.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ func pkiSecretBackendRootSignIntermediateResource() *schema.Resource {
Optional: true,
Description: "Specifies the default issuer of this request.",
},
consts.FieldNotAfter: {
Type: schema.TypeString,
Optional: true,
Description: "Set the Not After field of the certificate with specified date value. " +
"The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ. " +
"Supports the Y10K end date for IEEE 802.1AR-2018 standard devices, 9999-12-31T23:59:59Z.",
},
},
}
}
Expand Down Expand Up @@ -247,6 +254,7 @@ func pkiSecretBackendRootSignIntermediateCreate(ctx context.Context, d *schema.R
consts.FieldProvince,
consts.FieldStreetAddress,
consts.FieldPostalCode,
consts.FieldNotAfter,
}

intermediateSignBooleanAPIFields := []string{
Expand Down

0 comments on commit 6dc6b70

Please sign in to comment.