Issue with adding rsa_pulic_key to custom plugin config

Hi,

I’m trying to add a custom plugin to Kong, it is like jwt plugin, and I need to add rsa_public_key to KongPlugin config but it retruns this error when I’m using this plugin (other custom plugins added and working fine):
failed conditional validation given value of field 'config.rsa_public_key'\\\"},config={rsa_public_key}
The KongPlugin manifest is:

apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
  name: auth-plugin
  namespace: default
config:
  key1: value1
  rsa_public_key: |
    -----BEGIN PUBLIC KEY-----
    MIIBCg
    BBB
    cccc
    ...
    -----END PUBLIC KEY-----
plugin: auth

Please let me know how can I add rsa_public_key to a custom plugin?

Best regards,

The complete error message was:

error="posting new config to /config: HTTP status 400 (message: \"declarative config is invalid: {plugins={{[\\\"@entity\\\"]={\\\"failed conditional validation given value of field 'config.rsa_public_key'\\\"},config={rsa_public_key=\\\"invalid key\\\"}}}}\")" subsystem=proxy-cache-resolver

I created a new public key in PEM format with the following command:

$ openssl rsa -in private.pem -outform PEM -pubout -out public.pem

And the issue is resolved.