I’m sorry for the difficulty and the problems you’re experiencing. There have been changes to how keys get deserialized. You may be able to solve this problem on your own.
The public key is not a secret. Can you share it here, in its exact format?
The correct format looks like this;
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq/c4uCIU3UVFy7ezonkJ
WVp2HkyZutia5Vg3T6lnWMySLeux34pWEiQdnNomWJvxY1wUc3PDUD8m4dF86Lvd
Vr9dXisYtWpoaxy+nLGWmkSXv3pv77OfpEmaESbDEN4NlrQQsqnHH21fr8IQGp1e
IetYOcUkBl97QXETV7fS5gSM2PuqMh7PNKeQot9LAf+0ANLzpCXa7Tx26TXoib2C
RG5wD2+JDp3wlQtDTmNaHDgz7GDB1HsLYLY+JEFEi0hPY0zzUwxoH8UTlQmHHHWy
5ewmAAQZ3yasIG0csDM38nKSHcZJMorg3tcJzO/7RS+a/sU8oEJWLkUcGawM33cc
CQIDAQAB
-----END PUBLIC KEY-----
The older version of the JWT policy was pretty lenient about de-serializing keys. You could post your key like this:
-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq/c4uCIU3UVFy7ezonkJ WVp2HkyZutia5Vg3T6lnWMySLeux34pWEiQdnNomWJvxY1wUc3PDUD8m4dF86Lvd Vr9dXisYtWpoaxy+nLGWmkSXv3pv77OfpEmaESbDEN4NlrQQsqnHH21fr8IQGp1e IetYOcUkBl97QXETV7fS5gSM2PuqMh7PNKeQot9LAf+0ANLzpCXa7Tx26TXoib2C RG5wD2+JDp3wlQtDTmNaHDgz7GDB1HsLYLY+JEFEi0hPY0zzUwxoH8UTlQmHHHWy 5ewmAAQZ3yasIG0csDM38nKSHcZJMorg3tcJzO/7RS+a/sU8oEJWLkUcGawM33cc CQIDAQAB -----END PUBLIC KEY-----
(with all newlines replaced by spaces) … and the OLD policy would successfully deserialize the key.
But the relevant specification says that
- the header and footer should be on separate lines
- the base64-encoded data portion should consist of lines of text no more than 64 characters in length.
The newer policy expects things to be formatted as the specification describes.
We’re aware of some of the problems de-serializing keys formatted with “non-standard” PEM encoding. We’re trying to fix the problems. (The real bug is actually that the OLDER implementation of the policy was much too lenient, but I understand you have working proxies now and expect them to continue to work)
You can solve the problem with the new policy, yourself, by examining and possibly modifying the format of the PEM.
Be careful in ensuring that newlines are encoded properly into the PEM text. If you use the UI to paste in the PEM text, you may not be transferring the newlines as intended. (If this is happening, then it is a bug in the UI). In that case, try using the administrative API to upload your PEM file as an attribute. Keep in mind the UI may not display newlines even if they are present.
If you need specific assistance using the API, let me know.
I’m sorry for the difficulty and the problems you’re experiencing. We’re working to make the current policy as lenient as the old. In the meantime, you may be able to help yourself.