Private Key is null
in CertificateBundle
using of(String serialNumber, String certificate, String issuingCaCertificate, String privateKey)
#857
Labels
type: regression
A regression from a previous release
Milestone
Hello,
I'm trying to update from Spring Vault 3.0.2 to 3.1.0 (through spring-cloud-starter-vault-config) and I'm having an issue where, having created an instance of the CertificateBundle, I get
null
when I try to get the private key back.Here's a simple test case to illustrate.
I had a look at the code and it seems to me that the order of arguments is transposed on this line
spring-vault/spring-vault-core/src/main/java/org/springframework/vault/support/CertificateBundle.java
Line 98 in 74ff3b6
That is, it's passing null as the
privateKey
argument and passing the intended private key to theprivateKeyType
argument.Does that look/sound like it makes sense? Thanks for your assistance.
The text was updated successfully, but these errors were encountered: