This happens when your IdP presents self-signed certificates and you didn’t define pemtrustedcas_filepath in config.yml.
Also, pemtrustedcas_filepath requires a CA that was used to sign your IdP’s certificate.
However, instead, you can provide a final certificate of the service.
The certificate that the security plugin refers to is the one configured at the HTTPS endpoint of the IdP. You can check that by running the below command.