Closed ForbesLindesay closed 11 years ago
Please see this instructions: https://gist.github.com/867550, it fixes ruby on windows to pick up certs properly.
That works, would be great if something could be included to do this for you/work around the issue somehow.
We could probably include the instructions in a post-install message for the gem. I'm generally :-1: when it comes to automatically preinstalling certificates on a user's machine, as that partially bypasses the reason for certificates.
Could you directly include the certificate of travis-ci
in the gem?
@ForbesLindesay yes, we could do that. I don't like such approach, as this is just hiding the problem, which should be solved in rubies released for windows, so people can use any library that actually verifies SSL, but on the other hand probably a lot of people use ruby just for travis, so it's missing my point. Also, ruby experience on windows is already quite bad.
I'm starting to think that including certs, but using them only if system ones are not available will be actually the best way to handle this.
/cc @rkh @svenfuchs
Umm, no idea, sorry. i guess @roidrage and @rkh might be the best people to ask :)
I implemented this here: 50c67ca7bb18529990bc0756165d5035b2836709. I'm not sure if there is easy way to check if actually cert file is available, so I just check for platform.
Could anyone with access to windows check if it fixes the issue?
I get the following when running
travis encrypt ForbesLindesay/component-website MY_SECRET_ENV=super_secret