artifactory-client
artifactory-client copied to clipboard
Loading a custom X509 cert breaks the artifactory gem
Version:
artifactory-3.0.17
Environment:
Windows 10 Major Minor Build Revision
10 0 19045 0
ruby 3.3.2 (2024-05-30 revision e5a195edf6) [x64-mingw-ucrt] artifactory-3.0.17 openssl-3.2.0
Scenario:
Using Artifactory::Client with a custom X509 cert instead of one in the chain loaded by OpenSSL by default
Steps to Reproduce:
client.ssl_pem_file = 'testcert.pem' client.request('GET', 'https://my.artifactory.instance')
Expected Result:
Successful request
Actual Result:
C:/tools/ruby33/lib/ruby/3.3.0/openssl/pkey.rb:356:in initialize': Neither PUB key nor PRIV key (OpenSSL::PKey::RSAError) from C:/tools/ruby33/lib/ruby/3.3.0/openssl/pkey.rb:356:in
new'
from C:/tools/ruby33/lib/ruby/3.3.0/openssl/pkey.rb:356:in new' from C:/Users/wbowe/.local/share/gem/ruby/3.3.0/gems/artifactory-3.0.17/lib/artifactory/client.rb:245:in
request'
from (irb):13:in <main>' from <internal:kernel>:187:in
loop'
from C:/tools/ruby33/lib/ruby/gems/3.3.0/gems/irb-1.13.1/exe/irb:9:in <top (required)>' from C:/tools/ruby33/bin/irb:33:in
load'
from C:/tools/ruby33/bin/irb:33:in `