I have a RSA private key (-----BEGIN RSA PRIVATE KEY-----), part of a RSA private-public key set.
I need to use that key to sign a JWT (using the 'encode Json web token' assertion i presume).
Importing this key in the private key store doesn't work ("not a PKCS12 keystore").
When i use openssl to create a PKCS12 keystore from this key (openssl pkcs12 -export -nocerts -inkey private.key -out keystore.p12) i get a "import failed: null".
Should i be able to use such an RSA key with the gateway to sign a JWT?
Should i create a private key? Which openssl command is needed to create a PKCS12 file that the api gateway accepts?
Are there any other options?
Any help is much appreciated!