Giter VIP home page Giter VIP logo

jruby_ssl_issue's Introduction

jruby_ssl_issue

Example of an issue encountered with SMIME under JRuby

I followed the instructions here to generate a valid p12 file with a self-signed certificate and private key: http://help.globalscape.com/help/secureserver3/Generating_a_PKCS_12_private_key_public_certificate.htm

bundle install
assuming .ruby-version is respected, otherwise ensure `ruby` invokes JRuby 9.1.8.0
ruby test.rb

Expected Behaviour:

SMIME data output. This can be seen by switching to MRI:

MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha-256"; boundary="----257841A81F4951E175338EE2A626F7A6"

This is an S/MIME signed message

------257841A81F4951E175338EE2A626F7A6
foo bar baz
------257841A81F4951E175338EE2A626F7A6
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"

MIII+QYJKoZIhvcNAQcCoIII6jCCCOYCAQExDzANBglghkgBZQMEAgEFADALBgkq
hkiG9w0BBwGgggafMIICdTCCAd4CCQCAryMFKtC2qjANBgkqhkiG9w0BAQUFADB/
MQswCQYDVQQGEwJHQjENMAsGA1UECBMERmlmZTERMA8GA1UEBxMITWFya2luY2gx
ETAPBgNVBAoTCFRlc3RDb3JwMRYwFAYDVQQDEw1Sb3J5IFNpbmNsYWlyMSMwIQYJ... etc

Actual Behaviour:

TypeError: nil is not a string
  write_smime at org/jruby/ext/openssl/PKCS7.java:197
       <main> at test.rb:11
rory@Eddie:jruby_ssl_issue(master) $ 

jruby_ssl_issue's People

Contributors

mungler avatar

Watchers

 avatar  avatar  avatar James Cloos avatar Michael Sell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.