Skip to content

Commit 51a2136

Browse files
committed
fixed bugs for usr_csr_sans in pki role
1 parent aea8896 commit 51a2136

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/com/bettercloud/vault/api/pki/Pki.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ private String roleOptionsToJson(final RoleOptions options) {
505505
addJsonFieldIfNotNull(jsonObject, "key_type", options.getKeyType());
506506
addJsonFieldIfNotNull(jsonObject, "key_bits", options.getKeyBits());
507507
addJsonFieldIfNotNull(jsonObject, "use_csr_common_name", options.getUseCsrCommonName());
508+
addJsonFieldIfNotNull(jsonObject, "use_csr_sans", options.getUseCsrSans());
508509
}
509510
return jsonObject.toString();
510511
}

src/main/java/com/bettercloud/vault/api/pki/RoleOptions.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public class RoleOptions implements Serializable {
3535
private String keyType;
3636
private Long keyBits;
3737
private Boolean useCsrCommonName;
38+
39+
40+
3841
private Boolean useCsrSans;
3942
/**
4043
* @param ttl (optional) The Time To Live value provided as a string duration with time suffix. Hour is the largest suffix. If not set, uses the system default value or the value of max_ttl, whichever is shorter.
@@ -277,5 +280,6 @@ public Long getKeyBits() {
277280
public Boolean getUseCsrCommonName() {
278281
return useCsrCommonName;
279282
}
283+
public Boolean getUseCsrSans() { return useCsrSans; }
280284

281285
}

0 commit comments

Comments
 (0)