From ddce1fb109e775476849f90ccd5446ac0bd1e35e Mon Sep 17 00:00:00 2001 From: Boy Baukema Date: Thu, 8 May 2014 09:29:46 +0200 Subject: [PATCH] Support for XML Encryption by telling SSP the location of our private key file. --- library/EngineBlock/Corto/Module/Bindings.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/EngineBlock/Corto/Module/Bindings.php b/library/EngineBlock/Corto/Module/Bindings.php index 8f00af6269..7bcc385271 100644 --- a/library/EngineBlock/Corto/Module/Bindings.php +++ b/library/EngineBlock/Corto/Module/Bindings.php @@ -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", " "), @@ -619,6 +621,7 @@ protected function getSspOwnMetadata() 'X509Certificate' => $publicPem, ), ), + 'privatekey' => isset($certificates['privateFile']) ? $certificates['privateFile'] : '', ) ); return $spMetadata;