{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3397","repository_url":"https://api.github.com/repos/Azure/azure-xplat-cli","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3397/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3397/comments","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3397/events","html_url":"https://github.com/Azure/azure-xplat-cli/issues/3397","id":195763241,"number":3397,"title":"UNABLE_TO_VERIFY_LEAF_SIGNATURE ","user":{"login":"Lickkylee","id":5035654,"avatar_url":"https://avatars2.githubusercontent.com/u/5035654?v=3","gravatar_id":"","url":"https://api.github.com/users/Lickkylee","html_url":"https://github.com/Lickkylee","followers_url":"https://api.github.com/users/Lickkylee/followers","following_url":"https://api.github.com/users/Lickkylee/following{/other_user}","gists_url":"https://api.github.com/users/Lickkylee/gists{/gist_id}","starred_url":"https://api.github.com/users/Lickkylee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lickkylee/subscriptions","organizations_url":"https://api.github.com/users/Lickkylee/orgs","repos_url":"https://api.github.com/users/Lickkylee/repos","events_url":"https://api.github.com/users/Lickkylee/events{/privacy}","received_events_url":"https://api.github.com/users/Lickkylee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-15T10:02:03Z","updated_at":"2017-02-28T20:44:04Z","closed_at":"2016-12-20T19:09:31Z","body":"CLI Version: **0.10.7**\r\nOS Type:  Linux (SuSe. etc.)\r\nInstallation via:  npm \r\n\r\nMode: **ASM**\r\n\r\nEnvironment: **Azure China Cloud**\r\n\r\nDescription:\r\n`azure ` command doesn't work in ASM mode. \r\n\r\nSteps to reproduce:\r\n1) Run `azure config mode asm ...`\r\n2) Then run `azure vm list ...` or any other command.. \r\n\r\nError stack trace:\r\n\r\n**Please paste the content of ~/.azure/azure.err or C:\\Users\\username\\\\.azure\\azure.err over here**\r\n\r\nlqi1e-susec-scr:~ # azure config mode asm\r\ninfo:    Executing command config mode\r\ninfo:    New mode is asm\r\ninfo:    config mode command OK\r\nlqi1e-susec-scr:~ # azure vm list\r\ninfo:    Executing command vm list\r\n+ Getting virtual machines\r\nerror:   unable to verify the first certificate\r\nerror:   Error information has been recorded to /root/.azure/azure.err\r\nerror:   vm list command failed\r\n\r\nlqi1e-susec-scr:~ # cat /root/.azure/azure.err\r\n2016-12-15T09:50:40.504Z:\r\n{ Error: unable to verify the first certificate\r\n    at Error (native)\r\n    at TLSSocket.<anonymous> (_tls_wrap.js:1062:38)\r\n    at emitNone (events.js:86:13)\r\n    at TLSSocket.emit (events.js:185:7)\r\n    at TLSSocket._finishInit (_tls_wrap.js:586:8)\r\n    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }\r\nError: unable to verify the first certificate\r\n    at Error (native)\r\n    at TLSSocket.<anonymous> (_tls_wrap.js:1062:38)\r\n    at emitNone (events.js:86:13)\r\n    at TLSSocket.emit (events.js:185:7)\r\n    at TLSSocket._finishInit (_tls_wrap.js:586:8)\r\n    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)\r\nlqi1e-susec-scr:~ # azure -v\r\n0.10.7\r\n\r\nIf the issue is w.r.t `authentication` then please set `AZURE_ADAL_LOGGING_ENABLED=1` and then run the `azure login` command again. \r\nPlease paste the verbose logs over here. (Make sure to delete the password before pasting the contents).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments/283155029","html_url":"https://github.com/Azure/azure-xplat-cli/issues/3397#issuecomment-283155029","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/3397","id":283155029,"user":{"login":"ultrafastneal","id":5141882,"avatar_url":"https://avatars0.githubusercontent.com/u/5141882?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrafastneal","html_url":"https://github.com/ultrafastneal","followers_url":"https://api.github.com/users/ultrafastneal/followers","following_url":"https://api.github.com/users/ultrafastneal/following{/other_user}","gists_url":"https://api.github.com/users/ultrafastneal/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrafastneal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrafastneal/subscriptions","organizations_url":"https://api.github.com/users/ultrafastneal/orgs","repos_url":"https://api.github.com/users/ultrafastneal/repos","events_url":"https://api.github.com/users/ultrafastneal/events{/privacy}","received_events_url":"https://api.github.com/users/ultrafastneal/received_events","type":"User","site_admin":false},"created_at":"2017-02-28T20:44:04Z","updated_at":"2017-02-28T20:44:04Z","body":"Thanks @Lickkylee - That workaround worked!"}}
{"actor":{"display_login":"ultrafastneal"}}