Nested asn1 error when signing authn saml requests

Hi,

I’m setting up SAML with Keycloak and I’m trying to sign my authn requests and following the guide here but I get a neither pub key nor priv key nested asn1 error.

I get my certificate and key by exporting the client json from Keycloak.

Has anyone run into this before?

Thanks, Lee

Please share the full error message, the configuration (suggest redacting confidential information, following this guide) and involved GitLab versions (self-managed → /help, or SaaS).