{"action":"created","issue":{"url":"https://api.github.com/repos/spark/particle-cli/issues/137","labels_url":"https://api.github.com/repos/spark/particle-cli/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/spark/particle-cli/issues/137/comments","events_url":"https://api.github.com/repos/spark/particle-cli/issues/137/events","html_url":"https://github.com/spark/particle-cli/issues/137","id":107586730,"number":137,"title":"particle keys doctor ---not working on multiple devices","user":{"login":"chobberoni","id":4432363,"avatar_url":"https://avatars.githubusercontent.com/u/4432363?v=3","gravatar_id":"","url":"https://api.github.com/users/chobberoni","html_url":"https://github.com/chobberoni","followers_url":"https://api.github.com/users/chobberoni/followers","following_url":"https://api.github.com/users/chobberoni/following{/other_user}","gists_url":"https://api.github.com/users/chobberoni/gists{/gist_id}","starred_url":"https://api.github.com/users/chobberoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chobberoni/subscriptions","organizations_url":"https://api.github.com/users/chobberoni/orgs","repos_url":"https://api.github.com/users/chobberoni/repos","events_url":"https://api.github.com/users/chobberoni/events{/privacy}","received_events_url":"https://api.github.com/users/chobberoni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-21T19:56:35Z","updated_at":"2015-09-22T00:30:02Z","closed_at":null,"body":"Issuing ```particle keys doctor```\r\nthrowing back multiple errors for me and alot of my customers/clients.\r\n\r\nEven in a separate example than the one below (where the keys file doesn't already exist), it throws back almost identical errors as the second half as the example below.\r\n\r\nex:\r\n```\r\n$ particle keys load device.der \r\nrunning dfu-util -l \r\nFound DFU device 2b04:d006 \r\nThis file already exists, please specify a different file, or use the \r\n--force flag. \r\nError saving key to device... This file already exists, please specify a \r\ndifferent file, or use the --force flag.\r\n\r\n$ particle keys load device.der --force \r\nrunning dfu-util -l \r\nFound DFU device 2b04:d006 \r\nrunning dfu-util -l \r\nFound DFU device 2b04:d006 \r\nrunning dfu-util -d 2b04:d006 -a 1 -s 34:612 -U pre_device.der \r\nrunning openssl rsa -in pre_device.der -inform DER -pubout -out \r\npre_device.pub.pem \r\nError saving key from device... Error: Command failed: /bin/sh -c openssl \r\nrsa -in pre_device.der -inform DER -pubout -out pre_device.pub.pem \r\nunable to load Private Key \r\n2449:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too \r\nlong:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/asn1_lib.c:153: \r\n2449:error:0D068066:asn1 encoding routines:ASN1_CHECK_TLEN:bad object \r\nheader:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:1328: \r\n2449:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested \r\nasn1 \r\nerror:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:828: \r\n2449:error:0D094071:asn1 encoding routines:d2i_ASN1_SET:error parsing set \r\nelement:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/a_set.c:218:address=140435235357072 \r\noffset=-1299242056 \r\n2449:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong \r\ntag:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:1341: \r\n2449:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested \r\nasn1 \r\nerror:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:845: \r\n2449:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested \r\nasn1 \r\nerror:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:765:Field=iqmp, \r\nType=RSA \r\n2449:error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 \r\nlib:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/d2i_pr.c:99:\r\n\r\nError saving key to device... Error: Command failed: /bin/sh -c openssl \r\nrsa -in pre_device.der -inform DER -pubout -out pre_device.pub.pem \r\nunable to load Private Key \r\n2449:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too \r\nlong:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/asn1_lib.c:153: \r\n2449:error:0D068066:asn1 encoding routines:ASN1_CHECK_TLEN:bad object \r\nheader:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:1328: \r\n2449:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested \r\nasn1 \r\nerror:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:828: \r\n2449:error:0D094071:asn1 encoding routines:d2i_ASN1_SET:error parsing set \r\nelement:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/a_set.c:218:address=140435235357072 \r\noffset=-1299242056 \r\n2449:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong \r\ntag:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:1341: \r\n2449:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested \r\nasn1 \r\nerror:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:845: \r\n2449:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested \r\nasn1 \r\nerror:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/tasn_dec.c:765:Field=iqmp, \r\nType=RSA \r\n2449:error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 \r\nlib:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/crypto/asn1/d2i_pr.c:99:\r\n```"},"comment":{"url":"https://api.github.com/repos/spark/particle-cli/issues/comments/142146580","html_url":"https://github.com/spark/particle-cli/issues/137#issuecomment-142146580","issue_url":"https://api.github.com/repos/spark/particle-cli/issues/137","id":142146580,"user":{"login":"brycekahle","id":1010430,"avatar_url":"https://avatars.githubusercontent.com/u/1010430?v=3","gravatar_id":"","url":"https://api.github.com/users/brycekahle","html_url":"https://github.com/brycekahle","followers_url":"https://api.github.com/users/brycekahle/followers","following_url":"https://api.github.com/users/brycekahle/following{/other_user}","gists_url":"https://api.github.com/users/brycekahle/gists{/gist_id}","starred_url":"https://api.github.com/users/brycekahle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycekahle/subscriptions","organizations_url":"https://api.github.com/users/brycekahle/orgs","repos_url":"https://api.github.com/users/brycekahle/repos","events_url":"https://api.github.com/users/brycekahle/events{/privacy}","received_events_url":"https://api.github.com/users/brycekahle/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T00:30:02Z","updated_at":"2015-09-22T00:30:02Z","body":"You installed **OpenSSL** using the App or CLI? That doesn't make sense."}}