Unable to create Policy plugin bundle with a P12 private key.
The private key and the password are correct and can be imported on the gateway with the policy manager.
gradlew clean build-full-bundle
when I create the bundle I have this error :
> Task :build-full-bundle FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':build-full-bundle'.
> java.lang.NullPointerException (no error message)
Release : 10.0
Component : API GATEWAY
The certificate name in the p12 files does not match the name used in the build.gradle which is causing a java.lang.NullPointerException.
To be able to create the bundle, the certificate name in the p12 file needs to match the name used in the config build.gradle file.
See the example snippet from the build.gradle below having a p12 file called certificate.p12 which contains a certificate called "mycert" and the password is "notasecret" :
update the certificate.yml with
keystore: "Software DB"