{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/5967","repository_url":"https://api.github.com/repos/chef/chef","labels_url":"https://api.github.com/repos/chef/chef/issues/5967/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/5967/comments","events_url":"https://api.github.com/repos/chef/chef/issues/5967/events","html_url":"https://github.com/chef/chef/issues/5967","id":218137599,"node_id":"MDU6SXNzdWUyMTgxMzc1OTk=","number":5967,"title":"Knife SSL Check is not case insensitive","user":{"login":"thommay","id":8500,"node_id":"MDQ6VXNlcjg1MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/8500?v=4","gravatar_id":"","url":"https://api.github.com/users/thommay","html_url":"https://github.com/thommay","followers_url":"https://api.github.com/users/thommay/followers","following_url":"https://api.github.com/users/thommay/following{/other_user}","gists_url":"https://api.github.com/users/thommay/gists{/gist_id}","starred_url":"https://api.github.com/users/thommay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thommay/subscriptions","organizations_url":"https://api.github.com/users/thommay/orgs","repos_url":"https://api.github.com/users/thommay/repos","events_url":"https://api.github.com/users/thommay/events{/privacy}","received_events_url":"https://api.github.com/users/thommay/received_events","type":"User","site_admin":false},"labels":[{"id":120015241,"node_id":"MDU6TGFiZWwxMjAwMTUyNDE=","url":"https://api.github.com/repos/chef/chef/labels/Area:%20Dev%20Tools","name":"Area: Dev Tools","color":"d4c5f9","default":false},{"id":525673854,"node_id":"MDU6TGFiZWw1MjU2NzM4NTQ=","url":"https://api.github.com/repos/chef/chef/labels/Priority:%20Medium","name":"Priority: Medium","color":"eb6420","default":false},{"id":525658991,"node_id":"MDU6TGFiZWw1MjU2NTg5OTE=","url":"https://api.github.com/repos/chef/chef/labels/Type:%20Bug","name":"Type: Bug","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-30T09:39:01Z","updated_at":"2018-06-29T13:20:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"New to chef, however I believe that this could be an issue with knife. My chef-server was running on a VM with hostname \"ubuntuVM\".\r\n\r\nSome info from when this wasn't working:\r\n\r\n```\r\n$ knife ssl check\r\nConnecting to host ubuntuVM:443\r\nSuccessfully verified certificates from 'ubuntuVM'\r\n\r\n$ sudo openssl x509 -noout -in /var/opt/opscode/nginx/ca/ubuntuVM.crt -subject -issuer\r\nsubject= /C=US/O=YouCorp/OU=Operations/CN=ubuntuVM\r\nissuer= /C=US/O=YouCorp/OU=Operations/CN=ubuntuVM\r\n\r\n$ openssl s_client -connect ubuntuVM:443|tee /tmp/server-cert\r\ndepth=0 C = US, O = YouCorp, OU = Operations, CN = ubuntuVM\r\n```\r\n\r\nHowever the command was failing:\r\n```\r\n$ knife cookbook upload yum\r\nUploading yum [3.10.0]\r\nERROR: SSL Validation failure connecting to host: ubuntuvm - hostname \"ubuntuvm\" does not match the server certificate\r\nERROR: SSL Error connecting to https://ubuntuvm/bookshelf/organization-f3486b0086940c6933c77b35ce62fe8d/checksum-2aa31202e0a1433e0e49aa9cca35fad0?AWSAccessKeyId=043b6757e481c123bca417a25097da57ae19b579&Expires=1457354091&Signature=3alD0WJIR0s18f81HdWiJ/7Q2lg%3D, retry 1/5\r\n```\r\nChanging my VM hostname to 'ubuntuvm' fixed the issue:\r\n```\r\n$ knife ssl check\r\nConnecting to host ubuntuvm:443\r\nSuccessfully verified certificates from 'ubuntuvm'\r\n\r\n$ knife cookbook upload yum\r\nUploading yum [3.10.0]\r\nUploaded 1 cookbook.\r\n```\r\n\r\noriginally from @Doormouse2House as as chef/chef-dk#729"},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/401352082","html_url":"https://github.com/chef/chef/issues/5967#issuecomment-401352082","issue_url":"https://api.github.com/repos/chef/chef/issues/5967","id":401352082,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTM1MjA4Mg==","user":{"login":"dheerajd-msys","id":17288094,"node_id":"MDQ6VXNlcjE3Mjg4MDk0","avatar_url":"https://avatars0.githubusercontent.com/u/17288094?v=4","gravatar_id":"","url":"https://api.github.com/users/dheerajd-msys","html_url":"https://github.com/dheerajd-msys","followers_url":"https://api.github.com/users/dheerajd-msys/followers","following_url":"https://api.github.com/users/dheerajd-msys/following{/other_user}","gists_url":"https://api.github.com/users/dheerajd-msys/gists{/gist_id}","starred_url":"https://api.github.com/users/dheerajd-msys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dheerajd-msys/subscriptions","organizations_url":"https://api.github.com/users/dheerajd-msys/orgs","repos_url":"https://api.github.com/users/dheerajd-msys/repos","events_url":"https://api.github.com/users/dheerajd-msys/events{/privacy}","received_events_url":"https://api.github.com/users/dheerajd-msys/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T13:20:42Z","updated_at":"2018-06-29T13:20:42Z","author_association":"CONTRIBUTOR","body":"@thommay, @mrminecart Could you please help me with which chef you are getting this issue?\r\n\r\nI've tried with chef v12.19.36, chefDK v2.5.3(chef v13.8.5) and with master branch code but unable to reproduce the issue.\r\n\r\n**Chef-server**  : chef-server 12.17.33\r\n```\r\nubuntu@dh-chef-server-UBU:~$ cat /opt/opscode/version-manifest.txt\r\nchef-server 12.17.33\r\n```\r\n**Outputs for different chefs are:** \r\n\r\n**1. With chef v12.19.36**\r\n```\r\nPS D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo> knife ssl check -c .\\.chef\\knife.rb\r\nConnecting to host dh-chef-server-UBU.test:443\r\nSuccessfully verified certificates from `dh-chef-server-UBU.test'\r\n\r\nPS D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo> knife cookbook upload starter -o .\\cookbooks -c .\\.chef\\knife.rb\r\nUploading starter        [1.0.0]\r\nUploaded 1 cookbook.\r\n\r\nPS D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo> knife -v\r\nChef: 12.19.36\r\n```\r\n**2. With ChefDk v2.5.3 (chef v13.8.5)**\r\n```\r\nPS D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo> chef -v\r\nChef Development Kit Version: 2.5.3\r\nchef-client version: 13.8.5\r\ndelivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427)\r\nberks version: 6.3.1\r\nkitchen version: 1.20.0\r\ninspec version: 1.51.21\r\n\r\nPS D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo> knife ssl check -c .\\.chef\\knife.rb\r\nConnecting to host dh-chef-server-UBU.test:443\r\nSuccessfully verified certificates from `dh-chef-server-UBU.test'\r\n\r\nPS D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo> knife cookbook upload starter -o .\\cookbooks -c .\\.chef\\knife.rb\r\nUploading starter        [1.0.0]\r\nUploaded 1 cookbook.\r\n```\r\n**3. With master branch**\r\n```\r\nPS D:\\Chef_Repo\\chef> bundle exec knife ssl check -c D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo\\.chef\\knife.rb\r\nConnecting to host dh-chef-server-UBU.test:443\r\nSuccessfully verified certificates from `dh-chef-server-UBU.test'\r\n\r\n\r\nPS D:\\Chef_Repo\\chef> bundle exec knife cookbook upload starter -o D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo\\cookbooks -c D:\\Cards_worked\\Msys-845-knife-ssl-check-mixcase\\chef-starter\\chef-repo\\.chef\\knife.rb\r\nUploading starter        [1.0.0]\r\nUploaded 1 cookbook\r\n```"}}
{"actor":{"display_login":"dheerajd-msys"}}