{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-cli/issues/2227","repository_url":"https://api.github.com/repos/aws/aws-cli","labels_url":"https://api.github.com/repos/aws/aws-cli/issues/2227/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/2227/comments","events_url":"https://api.github.com/repos/aws/aws-cli/issues/2227/events","html_url":"https://github.com/aws/aws-cli/issues/2227","id":182203096,"number":2227,"title":"AWS IOT UnicodeDecodeError error when register-ca-certificate ","user":{"login":"iskWang","id":3337244,"avatar_url":"https://avatars.githubusercontent.com/u/3337244?v=3","gravatar_id":"","url":"https://api.github.com/users/iskWang","html_url":"https://github.com/iskWang","followers_url":"https://api.github.com/users/iskWang/followers","following_url":"https://api.github.com/users/iskWang/following{/other_user}","gists_url":"https://api.github.com/users/iskWang/gists{/gist_id}","starred_url":"https://api.github.com/users/iskWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iskWang/subscriptions","organizations_url":"https://api.github.com/users/iskWang/orgs","repos_url":"https://api.github.com/users/iskWang/repos","events_url":"https://api.github.com/users/iskWang/events{/privacy}","received_events_url":"https://api.github.com/users/iskWang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-cli/labels/closing-soon-if-no-response","name":"closing-soon-if-no-response","color":"5319e7"},{"url":"https://api.github.com/repos/aws/aws-cli/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-11T08:23:46Z","updated_at":"2016-10-14T02:25:37Z","closed_at":null,"body":"I'm a IOT beginner and following [Use Your Own Certificate](http://docs.aws.amazon.com/iot/latest/developerguide/device-certs-your-own.html)  try to run this script.\r\n```\r\naws iot register-ca-certificate -—ca-certificate rootCA.pem -—verification-cert verificationCert.pem\r\n```\r\nGot some error...\r\n```\r\n/usr/lib/python2.7/argparse.py:2129: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal\r\n  if option_string == short_option_prefix:\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/aws\", line 27, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/bin/aws\", line 23, in main\r\n    return awscli.clidriver.main()\r\n  File \"/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py\", line 50, in main\r\n    return driver.main()\r\n  File \"/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py\", line 178, in main\r\n    parsed_args, remaining = parser.parse_known_args(args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/awscli/argparser.py\", line 62, in parse_known_args\r\n    parsed, remaining = super(CLIArgParser, self).parse_known_args(args, namespace)\r\n  File \"/usr/lib/python2.7/argparse.py\", line 1722, in parse_known_args\r\n    namespace, args = self._parse_known_args(args, namespace)\r\n  File \"/usr/lib/python2.7/argparse.py\", line 1763, in _parse_known_args\r\n    option_tuple = self._parse_optional(arg_string)\r\n  File \"/usr/lib/python2.7/argparse.py\", line 2071, in _parse_optional\r\n    option_tuples = self._get_option_tuples(arg_string)\r\n  File \"/usr/lib/python2.7/argparse.py\", line 2133, in _get_option_tuples\r\n    elif option_string.startswith(option_prefix):\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1: ordinal not in range(128)\r\n```\r\n\r\nENV\r\n`aws-cli/1.11.2 Python/2.7.6 Linux/3.13.0-93-generic botocore/1.4.60`"},"comment":{"url":"https://api.github.com/repos/aws/aws-cli/issues/comments/253693647","html_url":"https://github.com/aws/aws-cli/issues/2227#issuecomment-253693647","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/2227","id":253693647,"user":{"login":"iskWang","id":3337244,"avatar_url":"https://avatars.githubusercontent.com/u/3337244?v=3","gravatar_id":"","url":"https://api.github.com/users/iskWang","html_url":"https://github.com/iskWang","followers_url":"https://api.github.com/users/iskWang/followers","following_url":"https://api.github.com/users/iskWang/following{/other_user}","gists_url":"https://api.github.com/users/iskWang/gists{/gist_id}","starred_url":"https://api.github.com/users/iskWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iskWang/subscriptions","organizations_url":"https://api.github.com/users/iskWang/orgs","repos_url":"https://api.github.com/users/iskWang/repos","events_url":"https://api.github.com/users/iskWang/events{/privacy}","received_events_url":"https://api.github.com/users/iskWang/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T02:25:37Z","updated_at":"2016-10-14T02:25:37Z","body":"still same error...\r\nI try\r\n```\r\naws iot register-ca-certificate -—ca-certificate fileb://home/vagrant/ca-test/rootCA.pem -—verification-cert fileb://home/vagrant/ca-test/verificationCert.pem\r\n```\r\nEven I upgrade openssl version and [Registering Your CA certificate](http://docs.aws.amazon.com/iot/latest/developerguide/device-certs-your-own.html#register-CA-cert) again\r\n```\r\nOpenSSL 1.0.2j  26 Sep 2016\r\n```"}}
{"actor":{"display_login":"iskWang"}}