Class: Xmlsec::Shim::Bridge
- Inherits:
-
Object
- Object
- Xmlsec::Shim::Bridge
- Defined in:
- lib/xmlsec-shim.rb
Overview
Executables = Bin.children.inject({}) { |h, p|
h[p.basename.to_s.to_sym] = p.to_s
h
}
Class Method Summary collapse
Class Method Details
.sign(doc_file, key_file) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/xmlsec-shim.rb', line 16 def self.sign(doc_file, key_file) binary_name = Bin.join("xmlsec1") o, s = Open3.capture2("#{binary_name} --sign --privkey #{key_file} #{doc_file}") output = o unless s.success? raise output end output end |