The debug information below may be of interest to the administrator / help desk:
SimpleSAML_Error_Error: METADATA
Backtrace: 0 /usr/lib/vendor/symfony/lib/vendor/simplesamlphp/www/saml2/idp/metadata.php:222 (N/A) Caused by: Exception: saml20-idp-hosted/'https://rest.peoplerecognition.com.au/simplesaml/saml2/idp/metadata.php': Unable to load certificate/public key from file "/usr/lib/vendor/symfony/lib/vendor/simplesamlphp/cert/server.crt". Backtrace: 2 /usr/lib/vendor/symfony/lib/vendor/simplesamlphp/lib/SimpleSAML/Configuration.php:1246 (SimpleSAML_Configuration::getPublicKeys) 1 /usr/lib/vendor/symfony/lib/vendor/simplesamlphp/lib/SimpleSAML/Utils/Crypto.php:210 (SimpleSAML\Utils\Crypto::loadPublicKey) 0 /usr/lib/vendor/symfony/lib/vendor/simplesamlphp/www/saml2/idp/metadata.php:41 (N/A)
The error as i understand that the public certificate 'server.crt' is missing, and of course it is missing. I don't quite understand where we can generate this certificate however. Sorry about my ignorance in this, but could you please advise how to generate / obtain this certificate ? Also, just checking if and where I need to include the token signing certificate provided from our IDP end ?
Thanks heaps, Ammu
-peter
--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:
https://simplesamlphp.org/support
Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.
Make sure to read the documentation:
https://simplesamlphp.org/docs/stable/
If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:
http://catb.org/~esr/faqs/smart-questions.html
---
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/pjKdp3a5ics/unsubscribe.
To unsubscribe from this group and all its topics, send an email to simplesamlphp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<?php
$config = array(
// This is a authentication source which handles admin authentication.
'admin' => array(
// The default is to use core:AdminPassword, but it can be replaced with
// any authentication source.
'core:AdminPassword',
),
// // An authentication source which can authenticate against both SAML 2.0
// // and Shibboleth 1.3 IdPs.
'restsso-sp' => array(
'saml:SP',
// The entity ID of this SP.
// Can be NULL/unset, in which case an entity ID is generated based on the metadata URL.
//'entityID' => null,
// The entity ID of the IdP this should SP should contact.
// Can be NULL/unset, in which case the user will be shown a list of available IdPs.
// 'idp' => null,
// The URL to the discovery service.
// Can be NULL/unset, in which case a builtin discovery service will be used.
'discoURL' => null,
// ADFS 2012R2 requires signing of the logout - the others are optional (may be overhead you don't want.)
'sign.logout' => TRUE,
'redirect.sign' => TRUE,
'assertion.encryption' => TRUE,
// We now need a certificate and key. The following command (executed on Linux usually)
// creates a self-signed cert and key, using SHA256, valid for 2 years.
// openssl req -x509 -nodes -sha256 -days 730 -newkey rsa:2048 -keyout my.key -out my.pem
'privatekey' => 'saml.pem',
'certificate' => 'saml.crt',
// Enforce the use of SHA-256 by default.
'signature.algorithm' => 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256'
),