Also exporting the key and adding it to the source will result in an error :
Access token Generation Failed with exception [ InvalidConfigurationException ]
[ Error details ] Exception : java.lang.ClassCastException: class org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to class org.bouncycastle.openssl.PEMKeyPair (org.bouncycastle.asn1.pkcs.PrivateKeyInfo and org.bouncycastle.openssl.PEMKeyPair are in unnamed module of loader ‘app’)
Upon further investigation we had to convert the key using :