Commit a9ac04a9 authored by Robert Lyon's avatar Robert Lyon

Bug 1750931: Populating the available certs array

behatnotneeded

Change-Id: I4f85b875d86f682e866306ae5140e88c5dada6f3
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent cc3af3c7
......@@ -133,9 +133,11 @@ foreach ($assertionsconsumerservices as $services) {
$metaArray20['AssertionConsumerService'] = $eps;
$availableCerts = array();
$keys = array();
$certInfo = SimpleSAML\Utils\Crypto::loadPublicKey($spconfig, false, 'new_');
if ($certInfo !== null && array_key_exists('certData', $certInfo)) {
$availableCerts['new_idp.crt'] = $certInfo;
$hasNewCert = true;
$certData = $certInfo['certData'];
......@@ -153,6 +155,7 @@ else {
$certInfo = SimpleSAML\Utils\Crypto::loadPublicKey($spconfig);
if ($certInfo !== null && array_key_exists('certData', $certInfo)) {
$availableCerts['idp.crt'] = $certInfo;
$certData = $certInfo['certData'];
$keys[] = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment