You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The KeyStore is working and contains the key and the cert.
Actual behavior
An exception is thrown:
java.lang.IllegalStateException: java.lang.IllegalStateException: Unable to load key store.
at com.github.nagyesta.lowkeyvault.example.impl.AzureCertificateRepositoryImpl.getCertificate(AzureCertificateRepositoryImpl.java:33)
at com.github.nagyesta.lowkeyvault.example.LowkeyVaultExampleApplicationTests.testCertificateRepositoryGetCertificateAndGetPrivateKeyShouldReturnGeneratedCertificateAndKeyWhenCalled(LowkeyVaultExampleApplicationTests.java:103)
...
at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: java.lang.IllegalStateException: Unable to load key store.
at com.github.nagyesta.lowkeyvault.example.impl.AzureCertificateRepositoryImpl.fetchKeyStore(AzureCertificateRepositoryImpl.java:56)
at com.github.nagyesta.lowkeyvault.example.impl.AzureCertificateRepositoryImpl.getCertificate(AzureCertificateRepositoryImpl.java:29)
... 85 more
Caused by: java.lang.IllegalArgumentException: Illegal base64 character d
at java.base/java.util.Base64$Decoder.decode0(Base64.java:848)
at java.base/java.util.Base64$Decoder.decode(Base64.java:566)
at java.base/java.util.Base64$Decoder.decode(Base64.java:589)
at com.github.nagyesta.lowkeyvault.example.impl.AzureCertificateRepositoryImpl.fetchKeyStore(AzureCertificateRepositoryImpl.java:51)
... 86 more
The command you used
N/A
A minimal project that can be used to reproduce the issue
See PR above
Environment
OS: Any
Version: 2.6.3
Java version 17
Additional context
N/A
The text was updated successfully, but these errors were encountered:
- Fixes encoder to generate same format as before
- Changes end-to-end tests to only accept the right format (and no longer accept Base64Mime)
Resolves#1295
{patch}
Signed-off-by: Esta Nagy <[email protected]>
Describe the bug
nagyesta/lowkey-vault-example#444 failed because the Base64 string of the certificate cannot be decoded by the client.
To reproduce
Steps to reproduce the behavior:
Expected behavior
The KeyStore is working and contains the key and the cert.
Actual behavior
An exception is thrown:
The command you used
N/A
A minimal project that can be used to reproduce the issue
See PR above
Environment
Additional context
N/A
The text was updated successfully, but these errors were encountered: