Skip to content

Prepend slashes to X509::Name.parse argument in examples #306

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

Merged

Conversation

stowersjoshua
Copy link
Contributor

Addresses issue 15882 with Zach Rowe's patch.

The #parse_openssl method expects a forward slash at the beginning of the argument if used as the delimiter.

# With the slash
OpenSSL::X509::Name.parse_openssl('/CN=nobody/DC=example').to_a
# =>[["CN","nobody",12],["DC","example",22]]

# Without the slash
OpenSSL::X509::Name.parse_openssl('CN=nobody/DC=example').to_a
# =>[["CN","nobody/DC=example",12]]

@ioquatix ioquatix merged commit 3e48c7a into ruby:master Dec 13, 2019
@ioquatix
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants