# SSL error while uploading cookbooks to hosted chef

**URL:** <https://discourse.chef.io/t/ssl-error-while-uploading-cookbooks-to-hosted-chef/7924>\
**Category:** Chef Infra (archive)\
**Created:** [March 5, 2016, 5:23pm UTC](https://discourse.chef.io/t/ssl-error-while-uploading-cookbooks-to-hosted-chef/7924 "2016-03-05T17:23:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppalanisamy](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@ppalanisamy](https://discourse.chef.io/u/ppalanisamy)\
**Post date:** [March 5, 2016, 5:23pm UTC](https://discourse.chef.io/t/ssl-error-while-uploading-cookbooks-to-hosted-chef/7924/1 "2016-03-05T17:23:41Z")

</div>

I’m trying to upload a bunch of cookbooks to hosted chef server using the following command.

knife cookbook upload -a -o /tmp/cookbooks/ -c /tmp/chef/knife.rb

knife.rb looks similar as below.  
current\_dir = File.dirname( **FILE** )  
log\_level :info  
log\_location STDOUT  
node\_name "username"  
client\_key "#{current\_dir}/username.pem"  
validation\_client\_name "validator"  
validation\_key "#{current\_dir}/validator.pem"  
chef\_server\_url “chefserverurl”

Few of the cookbooks are getting uploaded but it’s failing after some cookbooks with SSL validation error as described below.  
DEBUG: ---- HTTP Status and Header Data: ----  
DEBUG: HTTP 1.1 200 OK  
DEBUG: Initiating PUT to [https://s3-external-1.amazonaws.com/opscode-platform-production-data/organization-09469edacd8b383e29deb24b70e21c7c/checksum-14892bae37b8edc11b8e3dae71a3f8d1?AWSAccessKeyId=AKIAIQKPG2CTSTRVDO4Q&Expires=1457158196&Signature=yVZLkAzG57jCmlFJVggjMpXy4/4%3D](https://s3-external-1.amazonaws.com/opscode-platform-production-data/organization-09469edacd8b383e29deb24b70e21c7c/checksum-14892bae37b8edc11b8e3dae71a3f8d1?AWSAccessKeyId=AKIAIQKPG2CTSTRVDO4Q&Expires=1457158196&Signature=yVZLkAzG57jCmlFJVggjMpXy4/4%3D)  
DEBUG: X-OPS-AUTHORIZATION-5: l4kSChxELOkW1N/CRPACs6AX3CpVOuucFx2tBnFQhkeEU+D0W9tnwVRkXuxN  
DEBUG: date: Sat, 05 Mar 2016 05:55:11 GMT  
DEBUG: content-md5: FVbuXR0ePH0l0J7dZntdZg==  
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle\_request  
DEBUG: accept: application/json  
DEBUG: HTTP 1.1 200 OK  
DEBUG: x-amz-id-2: UB9txRXh0eqZs+HaOTB4A/oh4KIoZesTIj2RCZSLGZ8ALulxcF5ZZbcD3bc9+h4Y  
ERROR: SSL Validation failure connecting to host: [s3-external-1.amazonaws.com](http://s3-external-1.amazonaws.com) - SSL\_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A  
ERROR: SSL Validation failure connecting to host: [s3-external-1.amazonaws.com](http://s3-external-1.amazonaws.com) - SSL\_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A  
DEBUG: etag: "13fee0703d9c3bbb65ac1b40be674b3a"  
DEBUG: ---- HTTP Request Header Data: ----

Any help would be much appreciated.

Thanks,  
Prakash
