lib/xml_security_new.rb in spid-es-0.0.3 vs lib/xml_security_new.rb in spid-es-0.0.4

- old
+ new

@@ -111,10 +111,10 @@ #</SignedInfo> #<SignatureValue /> #<KeyInfo /> #<Object /> #</Signature> - def sign_document(private_key, certificate, signature_method = RSA_SHA1, digest_method = SHA256) + def sign_document(private_key, certificate, signature_method = RSA_SHA256, digest_method = SHA256) noko = Nokogiri::XML(self.to_s) do |config| config.options = XMLSecurityNew::BaseDocument::NOKOGIRI_OPTIONS end signature_element = REXML::Element.new("ds:Signature").add_namespace('ds', DSIG)