Closed osvaldomiranda closed 10 years ago
hi there, I'm trying to sign an xml document with a certificate and private key, both the'm opening with openssl, to do a test with rails console, I get the following error and the console goes down.
.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/nokogiri-xmlsec-0.0.4/lib/xmlsec.rb:21: [BUG] Segmentation fault ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.5.0]
I'm using it correctly ?
doc = Nokogiri::XML("Hello, World!") private_key = OpenSSL::PKey::RSA.new(File.new 'privateKey.pem') certificate = OpenSSL::X509::Certificate.new(File.read 'publicCert.pem') doc.sign! certificate: certificate, key:private_key, name:'hello'
can help me with this?
Greetings and thanks.
hi there, I could solve my problem, my error: open files with openssl, this is not needed since the gem does.
Thank you
hi there, I'm trying to sign an xml document with a certificate and private key, both the'm opening with openssl, to do a test with rails console, I get the following error and the console goes down.
.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/nokogiri-xmlsec-0.0.4/lib/xmlsec.rb:21: [BUG] Segmentation fault ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.5.0]
I'm using it correctly ?
doc = Nokogiri::XML("Hello, World! ")
private_key = OpenSSL::PKey::RSA.new(File.new 'privateKey.pem')
certificate = OpenSSL::X509::Certificate.new(File.read 'publicCert.pem')
doc.sign! certificate: certificate, key:private_key, name:'hello'
can help me with this?
Greetings and thanks.