- From: Tensibai <
>
- To:
- Subject: [chef] Re: Re: Secure knife winrm
- Date: Thu, 30 Oct 2014 20:28:55 +0100
I did resolve this issue by setting the SSL_CERT_FILE env variable pointing to a file with our internal CA certs before running knife commands.
As far as I can tell, this location is for ruby libs, not openssl on itself and that's why it dies.
I could worth a pull request on knife/chef code, unsure about which one...
Le 2014-10-30 20:09, Dwayne Forehand a écrit :
I've been trying to solve the same problem with knife winrm over ssl for a couple days. Did you get it figured out?
When I knife winrm to my node I get "Error 20 - unable to get local issuer certificate". I added our CA to /embedded/ssl/certs/cacert.pem and tried again. Same. I tried openssl s_client -showcerts against the domain and got error 20 as expected. Then I tried another openssl s_client -showcerts but specified the CAfile as /embedded/ssl/certs/cacert.pem. Success, returned ok.
When knife winrm calls openssl is it not passing along the location of /embedded/ssl/certs/cacert.pem?
Using ChefDK 0.3.2 on win server 2012 r2.
-Dwayne
|
Archive powered by MHonArc 2.6.16.