Skip to content

Commit

Permalink
Support for XML Encryption by telling SSP the location of our private…
Browse files Browse the repository at this point in the history
… key file.
  • Loading branch information
Boy Baukema committed May 8, 2014
1 parent 05887a1 commit ddce1fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/EngineBlock/Corto/Module/Bindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ protected function mapCortoEntityMetadataToSspEntityMetadata($cortoEntityMetadat
protected function getSspOwnMetadata()
{
$configs = $this->_server->getConfigs();
$certificates = $this->_server->getSigningCertificates();

$publicPem = $configs['certificates']['public'];
$publicPem = str_replace(
array('-----BEGIN CERTIFICATE-----', '-----END CERTIFICATE-----', "\n", "\t", " "),
Expand Down Expand Up @@ -619,6 +621,7 @@ protected function getSspOwnMetadata()
'X509Certificate' => $publicPem,
),
),
'privatekey' => isset($certificates['privateFile']) ? $certificates['privateFile'] : '',
)
);
return $spMetadata;
Expand Down

0 comments on commit ddce1fb

Please sign in to comment.