1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/rubygems
Vít Ondruch 94ee88b38c [rubygems/rubygems] Provide distinguished name which will be correctly parsed.
It seems that since ruby openssl 2.1.0 [[1]], the distinguished name
submitted to `OpenSSL::X509::Name.parse` is not correctly parsed if it
does not contain the first slash:

~~~
$ ruby -v
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]

$ gem list | grep openssl
openssl (default: 2.2.0)

$ irb -r openssl
irb(main):001:0> OpenSSL::X509::Name.parse("CN=nobody/DC=example").to_s(OpenSSL::X509::Name::ONELINE)
=> "CN = nobody/DC=example"
irb(main):002:0> OpenSSL::X509::Name.parse("/CN=nobody/DC=example").to_s(OpenSSL::X509::Name::ONELINE)
=> "CN = nobody, DC = example"
~~~

Instead, use `OpenSSL::X509::Name.new` directly as suggested by upstream
maintainer.

[1]: 19c67cd10c

https://github.com/rubygems/rubygems/commit/09ca0c2dae

Co-authored-by: Kazuki Yamaguchi <k@rhe.jp>
2021-12-02 04:43:06 +09:00
..
commands Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
core_ext
ext Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
optparse Do not document vendored files [ci skip] 2021-11-19 21:55:27 +09:00
package
request
request_set
resolver [rubygems/rubygems] Vendor tsort into rubygems 2021-10-29 18:00:46 +09:00
security [rubygems/rubygems] Add support to build and sign certificates with multiple key algorithms 2021-10-26 08:01:55 +09:00
source
ssl_certs
tsort Do not document vendored files [ci skip] 2021-11-19 21:55:27 +09:00
util Allow custom LicenseRef 2021-11-02 10:24:00 +09:00
available_set.rb
basic_specification.rb
bundler_version_finder.rb
command.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
command_manager.rb
compatibility.rb
config_file.rb
defaults.rb
dependency.rb
dependency_installer.rb
dependency_list.rb [rubygems/rubygems] Vendor tsort into rubygems 2021-10-29 18:00:46 +09:00
deprecate.rb
doctor.rb
errors.rb
exceptions.rb [rubygems/rubygems] Deprecate typo name 2021-11-29 23:38:01 +09:00
ext.rb
gem_runner.rb
gemcutter_utilities.rb
indexer.rb
install_default_message.rb
install_message.rb
install_update_options.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
installer.rb [rubygems/rubygems] Fix race condition when reading & writing gemspecs concurrently 2021-11-30 20:54:05 +09:00
installer_uninstaller_utils.rb
local_remote_options.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
mock_gem_ui.rb
name_tuple.rb
openssl.rb
optparse.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
package.rb
package_task.rb
path_support.rb
platform.rb
psych_additions.rb
psych_tree.rb
query_utils.rb
rdoc.rb
remote_fetcher.rb
request.rb
request_set.rb [rubygems/rubygems] Vendor tsort into rubygems 2021-10-29 18:00:46 +09:00
requirement.rb
resolver.rb
s3_uri_signer.rb
safe_yaml.rb
security.rb [rubygems/rubygems] Provide distinguished name which will be correctly parsed. 2021-12-02 04:43:06 +09:00
security_option.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
source.rb
source_list.rb
spec_fetcher.rb
specification.rb [rubygems/rubygems] Protect specs access at a finer level 2021-11-18 04:37:28 +09:00
specification_policy.rb
stub_specification.rb
text.rb
tsort.rb [rubygems/rubygems] Vendor tsort into rubygems 2021-10-29 18:00:46 +09:00
uninstaller.rb
unknown_command_spell_checker.rb
uri.rb
uri_formatter.rb
user_interaction.rb
util.rb
validator.rb
version.rb
version_option.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00