- From: "jeffty" <
>
- To: <
>
- Subject: [chef] How to ignore SSL check for resource http_request in cookbook
- Date: Sun, 27 Sep 2015 12:32:45 +0800
Hi All,
In my recipe I want to test a POST request with resource http_request in a
chef client:
http_request 'posting data' do
action :post
url '
https://my_restful_service:8080/test'
message '{}'
headers({'Authorization' => "Basic #{
Base64.encode64('guest:guest ')}",
'Content-Type' => 'application/xml'
})
end
And get below errors in the chef client node:
[2015-08-05T05:18:38-04:00] ERROR: http_request[posting data] (test::default
line 14) had an error: OpenSSL::SSL::SSLError: SSL_connect returned=1
errno=0 state=SSLv3 read server certificate B: certificate verify failed
[2015-08-05T05:18:38-04:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)
How to solve this? Is it possible disable SSL checking for this?
And if the post succeed how to do something based on the post status and
response content?
Thanks & Regards
Jason
<<attachment: winmail.dat>>
- [chef] How to ignore SSL check for resource http_request in cookbook, jeffty, 09/26/2015
Archive powered by MHonArc 2.6.16.