I'm trying expose an API to generate a Key using AES_SaveKey. On this action I choose to use PublicKey Mode and setup the Public Key Pair. When consuming the API, I received an error like this.
Here is my whole implementation.
Is there something I'm missing on this?
Thank you.
Hi @Jey-Em
Have a look at this: https://www.outsystems.com/forums/discussion/45562/cryptoapi-invalid-syntax-on-line-9/
It seems you may be having a wrong format in the publickey. If what you pasted is a PEM encoded key, then you can use RSA_PrivateKeyFromPEM before feeding it to that publickey input.
If it still persists after doing this, you may need to share some format of the key you are pasting then we’ll try to look further on what we can do.
Regards,
Bryan