Currently when using 4096 bit keys (with specifically hydra oauth2 server) lua-resty-openidc returns the following error:
public key decode error: RSA lib: nested asn1 error: bad object header: too long
Upgrading to the latest version of lua-resty-openidc fixes this.
If you need more information, please advice.
EDIT:
This initially upgraded to 1.7.1 but it broke some tests (missing "resty.random")
I tried using a lower version (1.6.1-1) and it seems to have fixed the issue and didn't break any tests.
I have force pushed and rebased now to present it as one commit.
Hello!
Currently when using 4096 bit keys (with specifically hydra oauth2 server) lua-resty-openidc returns the following error:
public key decode error: RSA lib: nested asn1 error: bad object header: too long
Upgrading to the latest version of lua-resty-openidc fixes this.
If you need more information, please advice.
EDIT: This initially upgraded to 1.7.1 but it broke some tests (missing "resty.random") I tried using a lower version (1.6.1-1) and it seems to have fixed the issue and didn't break any tests. I have force pushed and rebased now to present it as one commit.