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

Loading a custom X509 cert breaks the artifactory gem #172

Open
ralian opened this issue Jun 14, 2024 · 0 comments
Open

Loading a custom X509 cert breaks the artifactory gem #172

ralian opened this issue Jun 14, 2024 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@ralian
Copy link

ralian commented Jun 14, 2024

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 `

'

@ralian ralian added the Status: Untriaged An issue that has yet to be triaged. label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant