Skip to content

Commit

Permalink
pki: allow ed25519 keys (#1185)
Browse files Browse the repository at this point in the history
Signed-off-by: Anner J. Bonilla <abonilla@hoyosintegrity.com>
  • Loading branch information
annerajb committed Oct 6, 2021
1 parent 063314e commit c534482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vault/resource_pki_secret_backend_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func pkiSecretBackendRoleResource() *schema.Resource {
Required: false,
Optional: true,
Description: "The type of generated keys.",
ValidateFunc: validation.StringInSlice([]string{"rsa", "ec"}, false),
ValidateFunc: validation.StringInSlice([]string{"rsa", "ec", "ed25519"}, false),
Default: "rsa",
},
"key_bits": {
Expand Down
2 changes: 1 addition & 1 deletion vault/resource_pki_secret_backend_root_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func pkiSecretBackendRootCertResource() *schema.Resource {
Description: "The desired key type.",
ForceNew: true,
Default: "rsa",
ValidateFunc: validation.StringInSlice([]string{"rsa", "ec"}, false),
ValidateFunc: validation.StringInSlice([]string{"rsa", "ec", "ed25519"}, false),
},
"key_bits": {
Type: schema.TypeInt,
Expand Down

0 comments on commit c534482

Please sign in to comment.