-
Notifications
You must be signed in to change notification settings - Fork 303
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
Windows cert file paths being treated like inline certs #492
Comments
@jsmartt sounds reasonable. I'd introduce a class predicate method on |
Great! Thanks @michaelklishin ! |
@jsmartt do you need a preview release shortly or can you use the tip of |
Well this fixes an issue for a new feature, so that new feature will just be broken for Windows users until a new release is available on rubygems. So it's not urgent, but I'm not opposed to a release as soon as possible. 😉 I'm not pulling pre-releases though, so whenever you can get a 2.6.5 version out, I'll be able to use it. |
I'm running v2.6.4 of the gem, and the code here determines if each cert is a path or inline certificate by checking if the string starts with a
/
. This is fine for Linux, but on my Windows box with Ruby 2.3.1 (provided in the Chef DK), that list of certs is:This causes these paths to be appended to the
cert_inlines
array, and eventually causes aOpenSSL::X509::CertificateError (not enough data)
when it's added here.I propose that the regex be updated from
/^\//
to/^([a-z]:?)?\//i
to allow these Windows-style paths. I'd be glad to submit a PR to fix this, but wanted to run it by you guys first.Thanks!
The text was updated successfully, but these errors were encountered: