Commit e16cb10

mo <mo@mokhan.ca>
2017-11-29 00:16:06
delegate to certificate object.
1 parent 991dcb4
Changed files (1)
lib
saml
lib/saml/kit/response.rb
@@ -186,7 +186,7 @@ module Saml
             yield temp
             raw_xml_to_encrypt = temp.target!
 
-            encryption_certificate = request.provider.encryption_certificates.first.x509
+            encryption_certificate = request.provider.encryption_certificates.first
             public_key = encryption_certificate.public_key
 
             cipher = OpenSSL::Cipher.new('AES-256-CBC')