Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadPy + setupCustomCA error: "ledgerblue.commException.CommException: Exception : Invalid status 6985 (Condition of use not satisfied (denied by the user?))" #42

Closed
youngpascal opened this issue May 9, 2018 · 1 comment

Comments

@youngpascal
Copy link

commented May 9, 2018

  • Python 3.6, Windows 10, Powershell
  • Nano S
  • Firmware: 1.4.2, MCU 1.5

Python input (setupCustomCA) :
python -m ledgerblue.setupCustomCA --targetId 0x31100003 --name backpacker69 --public 04300986d41d30de87eea1c33b8783f6ddb9c26df5278818a464b3fd2ba5026df16510628fb8ada3033fc605ebf409070b408fa49423c2b1f543fa542e098947a2 --apdu

APDU output:
`

  • Generated random root public key : b'046dcb1c3d104349658596ebbb0e1c1eb35e3d5a3d936a99c3319d90a9cf3871a252b4b2a1c483bfdc879c3f72eb0516eecf0b9d88c9bd595c525ebaaa2ebff3c6'
  • HID => e00400000431100003
  • HID <= 9000
  • HID => e05000000814d27deef414d94d
  • HID <= 000000023de1f6f99f3efa859000
  • Using test master key b'046dcb1c3d104349658596ebbb0e1c1eb35e3d5a3d936a99c3319d90a9cf3871a252b4b2a1c483bfdc879c3f72eb0516eecf0b9d88c9bd595c525ebaaa2ebff3c6'
  • HID => e05100008a41046dcb1c3d104349658596ebbb0e1c1eb35e3d5a3d936a99c3319d90a9cf3871a252b4b2a1c483bfdc879c3f72eb0516eecf0b9d88c9bd595c525ebaaa2ebff3c6473045022040f8625684543ebb9931511e399953ebfb01df29eb722acb084f6834fb646a28022100f95d8ae8ac66568628f8018c90e8eb3643ac58b29a6989aa1a5ce9c2cb4cefda
  • HID <= 9000
  • Using ephemeral key b'04ff9a8c1b3feaf2f0c3047f72328e304b1698e84d9ff2fd5f09573b1c9d0c2b095ad628ec80027dce859436121dc47a8954f07300af517db5f125059b002d4807'
  • HID => e0518000894104ff9a8c1b3feaf2f0c3047f72328e304b1698e84d9ff2fd5f09573b1c9d0c2b095ad628ec80027dce859436121dc47a8954f07300af517db5f125059b002d4807463044022056b8173024acccb4f47588d55374c99ed5e8f1d74a9d42f472cc14e159142e69022041ae96fdf2f7a41fb729bd7678a1e6df780ba14a1b92fcee1701e73b0202ba40
  • HID <= 9000
  • HID => e052000000
  • HID <= 0790fe4021bc49554104a9aa4435d956f97024060b1e8e0f95c1e6a6a4576e059ff898d252a6a7bb7b2ddabfe6a1fce6279b9f75e1a04548e55efae02b755cbefbbfa31a04e7136698894630440220642cc236bf2a1358801f76410416a7fa7ec17a90ab428fd07682d06b8b3f5cd602202db833d93cbdf189a07eb94070093f2dcb58ebfbaabef867e3cea60b6e2cd9179000
  • Broken certificate chain - loading from user key
  • HID => e052800000
  • HID <= 0041041575c8e7d3023abe839342c0a9fd61a40d9a9fedaee0a975354e69c03f24612ea9bf0d8dc323930e96721afdbae7393880439198826e0ceb79d9b7427aa22065473045022100bddae7100db49d90101bd43d8203e701223027d1faeb927ea465920a9c1cc67502202f963bc12e10540e69d427db12a9b9a863cc68c5101a855a08659362a20189ff9000
  • HID => e053000000
  • HID <= 9000
  • HID => e00000006ea847906f6b195fa5f7becc700dbafcb8c7c9a451bc606a77ced0f434c93e57dcd519f205be22902cd14a920e5937f6da30bbb982a7dc045ae55ecfb24a1d598a817b27f0a81f0371320316ed704d2a189c1573864113729b2c1ab0d734663d36cd1571fa113dfb4defe827bd33dd
  • HID <= 6985

`

Python input (loadApp) :
python -m ledgerblue.loadApp --curve secp256k1 --tlv --targetId 0x31100003 --delete --fileName C:/Users/Jwilly/app.hex --appName "Peercoin" --appVersion 1.2.5 --icon 0100000000ffffff00ffffffffffffffff0fff0ffc0ff88ff80ff11ff21ffa7ffeffffffffffffffff -- appFlags 0x50 --dep Bitcoin --signature 304502205ddf68949eb3856193be284bbd080d5f63582f009ab437ee5f65c8af96dfd588022100abba7ea6f6fcc466b1ef1a752238c3394f638f6e78f7503af26abd9cea075e1c --apdu

APDU output:

`

  • Generated random root public key : b'0483db4236a1bffdf5ef44830d1544ccebf3a748fe710296fe06ffbd8b90ae32bc71e75321e70baa48cced30e271a54503229202606796516f84ffb62c633f3c08'
  • HID => e00400000431100003
  • HID <= 9000
  • HID => e050000008bafa99324dcb1313
  • HID <= 00000002d97042a62fddffab9000
  • Using test master key b'0483db4236a1bffdf5ef44830d1544ccebf3a748fe710296fe06ffbd8b90ae32bc71e75321e70baa48cced30e271a54503229202606796516f84ffb62c633f3c08'
  • HID => e05100008a410483db4236a1bffdf5ef44830d1544ccebf3a748fe710296fe06ffbd8b90ae32bc71e75321e70baa48cced30e271a54503229202606796516f84ffb62c633f3c0847304502201e9143e74cf8fa631645d43ca3be9105fc1a44be7234f8151aeb81e48690a14c022100a23c1ecc4c02143d45378853a33d7c45fdf129de6a74268149f83a440e790da0
  • HID <= 9000
  • Using ephemeral key b'042ea99971a30e8de4204fd9d6a128f3f4a905621b3bf9902adef62a4fba461e33ec08936ace03974767876b612861f4192ad52de515dcd4a5d6ae2b8cc67cfe5b'
  • HID => e05180008a41042ea99971a30e8de4204fd9d6a128f3f4a905621b3bf9902adef62a4fba461e33ec08936ace03974767876b612861f4192ad52de515dcd4a5d6ae2b8cc67cfe5b473045022100f0de41619f2cda6ece6b755f6c73eff1b7b42a1a09e4711ccbb229dca7ee8c5702200c295ca6623d14c47007c21baca273ab3f01d5fab4b8f7f7ebdf7ebce2ba1131
  • HID <= 9000
  • HID => e052000000
  • HID <= 0790fe4021bc49554104a9aa4435d956f97024060b1e8e0f95c1e6a6a4576e059ff898d252a6a7bb7b2ddabfe6a1fce6279b9f75e1a04548e55efae02b755cbefbbfa31a04e7136698894630440220642cc236bf2a1358801f76410416a7fa7ec17a90ab428fd07682d06b8b3f5cd602202db833d93cbdf189a07eb94070093f2dcb58ebfbaabef867e3cea60b6e2cd9179000
  • Broken certificate chain - loading from user key
  • HID => e052800000
  • HID <= 00410494377dfc95d61c1da1d0ac60e41bd8721d5beebf10239a3e683f89b9528f7b6531dcdce559744efe9024efe7f46f537410b04dc9782d4a07bb939a0daf2c43cf473045022100c1870039eb905cb8a09c92d3417b90656704f1c7cd5809bfb0ee02e9083bb1cc02207060090a14587fd81bb7486c41978eb0d3e0e495bf70d7d7b563bd386f9525579000
  • HID => e053000000
  • HID <= 9000
  • HID => e00000001e8cce5016962a0012f1e47df44a82baa9fb2b9005286d5f7d6c0c32146374
  • HID <= 9000
  • HID => e00000002e91712a230bc743d883fe1cdfca9c9588b1f9d22aeb3f4713d9bd4411be264a4152d726017bbafd34c0edceaf6fa9
  • HID <= 9000
  • HID => e00000001e588dc05c8e474d46c2cd3501900b84e1c6deba49b41ee73f8f2340dbd867
  • HID <= 9000
  • HID => e0000000eef08c7a1e285683832335893c4586dd5a79dd8492b5f1bcf7370f00eded33659a6cbb4abf44ecff8eaa562011a2ad4b42a92e99330bef046fc177ef63522ae9a537259643eb922196010e7194c51f4eab72f27ae610a31b576b0ba6bc4cee3413fd728fddc225de99a26b454b9d8d45fe54a58cc1b12db1c0422bd7c48a47ab269c956ad59cab73c2c2141b23294f20e2fce1a8f457241ebc09ad03368d76d258e9f31d4d1a270bfb4fb75b6babce83f0291c3bcc3efa42687f5482ac37c42cb1bc6216c2efea1b3b35cb4df7ef3d58e8c9a73f909e6cb8a687777e166e9c4e9fd16a4340ccb95b4c14a9ceef6221
  • HID <= 9000
  • HID => e0000000eebad49cd995dd9ddeccfbfec8f76cde02f1686a30e5d93ce37cce2b5831b33ee0e7cd7d3038443da9d1adc998e1cbcf3f08efe5767ef64778cd895941f2e382e0d605def06bbdc1215c29f38acf037b3dbb21e311271955aa66311faa4ad4e2c3eb3098f7b0089cf27af4590f00de0d1e1c5ab1349834d72af5f7994c8a4975dbf61f38bbd164b0c795da0a9cea29cb4a64a27ab9c332c9a7e28979185239b95b3f162851a2b17c755ab4fb362e5b2e529f2cd65a24f906acd8c07df802c12086c3a1f92f5347a35eb25843fdf224ef228b3bcf1d64d0ab167548137bfd6853f4c80cb14dcf5a0aeb28bf9f73dd4e
  • HID <= 9000
  • HID => e0000000ee542e0be61e33ad85e8a810cdbbe3e5c1a17eced7baf7aaa4ce19b25acfaaa55aab473049fbf3414a36547c421c772686563ec48f517203f60506cc29490fd828859e2f8ff2485637e1272e473f7be82bea967684bf6eac2370256b11e9d3e967259dbb18b85513bddd6c513442f91af5b5f86b048d99df1ca509c18ec247b26df2224deae9735eeaf88aa1300384f6ba275232ff848ce82f1dcc71cfcb69257d1cfb9eb631ac239d70b98fb8c4d6012acaa5a78dee359f0e284a06eb4ec3953056bf87e975c3b73e296d1b7d0ad509ee15c51c3be463a62f4defc268cbab609f82f7b6d8463860db8e13388c5c13
  • HID <= 9000
  • HID => e0000000ee9cec66ec21488b7e31df29c77313d05d9a1ef8fb116652ea1aa019437ff027298e551f8e3e5a5b4d23b3703ab366a2cbdfc40abbd1796060509a66282fd33859531571ecb81a4aad9605f92c3da42913759ed431e1c90308942239c9ed76ad2958bbd8dd76813674ed77def4701e1f143e21c0157166e86857c27ab161d37aaa48acce750007505841a31e41747288a6fc5d17855c332a56db012cee13187b4adc12fb2c71e73db1ec6fc608ec46242b97d99082d9e29b15134d3bb1936a290617b0d4eefe51c0a7e438c6c7857bb5651f85a4b4475e9ebc87d1b7575a973f8908598f2c5cc0350fbaffe9728e6c
  • HID <= 9000
  • HID => e00000001efb9cf9535415a63865904236cbeb0f8f6ba24d8d4138dc4aaaca38adefa5
  • HID <= 9000
  • HID => e00000001ef938dcf78bb90c95dcda7de4caa78a065fac5892c07326af7f8a59e3de4b
  • HID <= 9000
  • HID => e00000001e96940e571345330c07d1cede460e9f03359016557b0c4669b03ac588b5d9
  • HID <= 9000
  • HID => e00000005e285490f3441aa6ad884e43a82bcc725266631663ed6aae6ba9c805ec457d43a9b4a8fff741d0dad5038d91e5d60dfba20dc833bb96709689c03e1eb81992e04cb933368c3b31064e75e662954e48c752c6a73620cec28fd3583bc5efa58e
  • HID <= 9000
  • HID => e00000001e7ebe9e00b0089759593ec361960f8c34bc1b851ecee5528fc320c409b3a3
  • HID <= 9000
  • HID => e00000001e332ec734ddf884358e407a9e5c60f5f88e7b08381f4f609c3807c621fe98
  • HID <= 9000
  • Application full hash : b1de33eda58c02642b8e2fe8cf035e3955d975c562efd6718ee8cfd97e845fcc
  • HID => e00000005e1cadd53d0062d56a96fa2db4f23b33e169c8bf6857562ba12529186ced6eaa0ba7d6efbc08019de8680fd1945b33524387e3a332e9ca501ff4ea6ba3b4269662fdf1d3bba0c0ec5da25ec0500eb6c07935e8dd3d1aee7abecf531fd9fe0a
  • HID <= 6985

`

@youngpascal

This comment has been minimized.

Copy link
Author

commented May 10, 2018

These errors were caused by not having the ledger in recovery mode. To enter recovery mode: Hold the right button (furthest from USB port, closest to swivel) for 5 seconds, then plug the USB cord in. A prompt will pop up saying "Recovery mode". Accept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.