{"id":2804,"date":"2017-12-09T13:05:15","date_gmt":"2017-12-09T13:05:15","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2804"},"modified":"2021-11-18T06:27:12","modified_gmt":"2021-11-18T06:27:12","slug":"error-ssl-validation-failure-connecting-to-host","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/error-ssl-validation-failure-connecting-to-host\/","title":{"rendered":"Chef Error: SSL Validation failure connecting to host"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: ERROR: SSL Validation failure connecting to host<\/strong><\/p>\n<p>Problem<br>\n[code language=&#8221;css&#8221;]<br>\n[root@sv-chef-server mychefrepo]# sudo knife node list<br>\nERROR: SSL Validation failure connecting to host: 10.0.0.134 &#8211; SSL_connect returned=1 errno=0 state=error: certificate verify failed<br>\nERROR: Could not establish a secure connection to the server.<br>\nUse `knife ssl check` to troubleshoot your SSL configuration.<br>\nIf your Chef Server uses a self-signed certificate, you can use<br>\n`knife ssl fetch` to make knife trust the server&#8217;s certificates.<\/p>\n<p>Original Exception: OpenSSL::SSL::SSLError: SSL Error connecting to https:\/\/10.0.0.134\/organizations\/mysvhcl\/nodes &#8211; SSL_connect returned=1 errno=0 state=error: certificate verify failed<br>\n[\/code]<\/p>\n<p>Solution<\/p>\n<p>Regards,<br>\nRajesh Kumar<br>\nTwitt me @ twitter.com\/RajeshKumarIn<\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_72772\"><iframe loading=\"lazy\"  id=\"_ytid_82392\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_72772\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: ERROR: SSL Validation failure connecting to host Problem [code language=&#8221;css&#8221;] [root@sv-chef-server mychefrepo]# sudo knife node list ERROR: SSL Validation failure connecting to host: 10.0.0.134 &#8211; SSL_connect&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[596],"class_list":["post-2804","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-ssl"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2804"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2804\/revisions"}],"predecessor-version":[{"id":25677,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2804\/revisions\/25677"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}