Skip to content
Snippets Groups Projects
Commit 3d8e55ef authored by Olav Morken's avatar Olav Morken
Browse files

saml: Add certificate to metadata.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1743 44740490-163a-0410-bde0-09ae8108e29a
parent 9e547f4e
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,12 @@ if ($spconfig->getBoolean('saml20.binding.artifact.enable', FALSE)) { ...@@ -35,6 +35,12 @@ if ($spconfig->getBoolean('saml20.binding.artifact.enable', FALSE)) {
$metaArray20['AssertionConsumerService.artifact'] = SimpleSAML_Module::getModuleURL('saml/sp/saml2-acs.php'); $metaArray20['AssertionConsumerService.artifact'] = SimpleSAML_Module::getModuleURL('saml/sp/saml2-acs.php');
} }
$certInfo = SimpleSAML_Utilities::loadPublicKey($spconfig->toArray());
if ($certInfo !== NULL && array_key_exists('certData', $certInfo)) {
$certData = $certInfo['certData'];
$metaArray11['certData'] = $certData;
$metaArray20['certData'] = $certData;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment