lib/saml/kit/response.rb in saml-kit-0.2.0 vs lib/saml/kit/response.rb in saml-kit-0.2.1

- old
+ new

@@ -184,10 +184,10 @@ if encrypt temp = ::Builder::XmlMarkup.new yield temp raw_xml_to_encrypt = temp.target! - encryption_certificate = OpenSSL::X509::Certificate.new(Base64.decode64(request.provider.encryption_certificates.first[:text])) + encryption_certificate = request.provider.encryption_certificates.first public_key = encryption_certificate.public_key cipher = OpenSSL::Cipher.new('AES-256-CBC') cipher.encrypt key = cipher.random_key