Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby 2.5.1 OpenSSL::X509::Certificate.new fails with NameError #200

Closed
no-mercy opened this issue May 3, 2018 · 2 comments
Closed

ruby 2.5.1 OpenSSL::X509::Certificate.new fails with NameError #200

no-mercy opened this issue May 3, 2018 · 2 comments

Comments

@no-mercy
Copy link

no-mercy commented May 3, 2018

When i try to generate new certificate, it fails with OpenSSL::X509::NameError (X509_NAME_print_ex) error.

Environment: macOS 10.13.4, rbenv

Steps to reproduce:

require 'openssl'
OpenSSL::X509::Certificate.new

@no-mercy
Copy link
Author

no-mercy commented May 3, 2018

Update: it is "inspect" method error of OpenSSL::X509::Certificate instance

@rhenium
Copy link
Member

rhenium commented Aug 8, 2018

Minimal reproduce code:

$ ruby -ropenssl -e'p OpenSSL::X509::Name.new.to_s(OpenSSL::X509::Name::RFC2253)'

The handling of X509_NAME_print_ex() return value seems wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants