Caused by: SimpleSAML_Error_Exception: saml20-idp-hosted/'idp-test-yxcloud': Could not find PEM encoded certificate in "D:\Apache24\simplesamlphp/cert/testSP-SPCertificate.cer"

608 views
Skip to first unread message

ap03...@gmail.com

unread,
Jun 6, 2016, 3:43:49 AM6/6/16
to SimpleSAMLphp
Hi,everyone.I got an error:Caused by: SimpleSAML_Error_Exception: saml20-idp-hosted/'idp-test-yxcloud': Could not find PEM encoded certificate in "D:\Apache24\simplesamlphp/cert/testSP-SPCertificate.cer";
But it find the privatekey file in the same dir.
My saml20-idp-hosted.php :

$metadata['idp-test-yxcloud'] = array( 
'host' => 'localhost', 
'privatekey'   => 'testSP-IdpKey.pfx',
'privatekey_pass' => 'password',
        'certificate'  => 'testSP-SPCertificate.cer', 
'auth' => 'ldap-yxcloud-com', 
'SingleSignOnServiceBinding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'SingleLogoutServiceBinding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
}

Who can help me to resolve this problem?Please! 

Jaime Perez Crespo

unread,
Jun 6, 2016, 4:56:20 AM6/6/16
to simple...@googlegroups.com
Hi,

Is there a certificate in “D:\Apache24\simplesamlphp/cert/“ with filename "testSP-SPCertificate.cer”? If there is, is it PEM-encoded or DER-encoded? SimpleSAMLphp needs it to be encoded in PEM.
--
Jaime Pérez
UNINETT / Feide
mail: jaime...@uninett.no
xmpp: ja...@jabber.uninett.no

"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."
- Robert Frost

张菜

unread,
Jun 6, 2016, 6:23:45 AM6/6/16
to simple...@googlegroups.com
thx .There is a certificate in that dir.I found that my certificate is not encoded in PEM,I created a new file which encoded in PEM,and then it has been solved.


--
You received this message because you are subscribed to a topic in the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simplesamlphp/8bSRGy53WyU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlph...@googlegroups.com.
To post to this group, send email to simple...@googlegroups.com.
Visit this group at https://groups.google.com/group/simplesamlphp.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages