Cleanup idp_certifcate to be compatible with openssl_x509_read