spec/signer_spec.rb in signer-1.1.0 vs spec/signer_spec.rb in signer-1.1.1
- old
+ new
@@ -36,10 +36,10 @@
signer = Signer.new(File.read(input_xml_file))
signer.cert = OpenSSL::X509::Certificate.new(File.read(cert_file))
signer.private_key = OpenSSL::PKey::RSA.new(File.read(private_key_file), "test")
signer.security_node = signer.document.root
signer.security_token_id = ""
- signer.digest!(signer.document, :id => "")
+ signer.digest!(signer.document, :id => "", :enveloped => true)
signer.sign!(:issuer_serial => true)
# File.open(File.join(File.dirname(__FILE__), 'fixtures', 'output_2.xml'), "w") do |f|
# f.write signer.document.to_s
# end