LedgerHQ / app-openpgp

OpenPGP Card Application
Apache License 2.0
123 stars 21 forks source link

Installation on Ledger Nano S with firmware 1.4.1 #19

Closed paweljacewicz closed 6 years ago

paweljacewicz commented 6 years ago

Hi!

I'd like to ask whether there will be available a release compiled for the Ledger Nano S with firmware ver. 1.4.1? I tried to compile it myself but get errors that some functions have wrong number of arguments passed to them. It seems like some changes in the Ledger SDK are responsible for it.

Thanks for any info!

cslashm commented 6 years ago

It should be available this Week.

Le 11 mars 2018 9:12 PM, "Paweł Jacewicz" notifications@github.com a écrit :

Hi!

I'd like to ask whether there will be available a release compiled for the Ledger Nano S with firmware ver. 1.4.1? I tried to compile it myself but get errors that some functions have wrong number of arguments passed to them. It seems like some changes in the Ledger SDK are responsible for it.

Thanks for any info!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LedgerHQ/blue-app-openpgp-card/issues/19, or mute the thread https://github.com/notifications/unsubscribe-auth/AFOX81uwfiQ16uJV10pjlXlJjk132USSks5tdYVKgaJpZM4Sl1mG .

paweljacewicz commented 6 years ago

Great!

Thanks for the info!

dantrauner commented 6 years ago

@cslashm Would anything have changed related to enabling communication with the Ledger CCID interface? I'm unable to do so post-update despite having performed the setup detailed here which was working for the prior FW/OpenPGP versions.

EDIT: Turned up the debugging, and scdaemon shows:

2018-03-17 13:14:50 scdaemon[991] DBG: chan_5 <- GETINFO version
2018-03-17 13:14:50 scdaemon[991] DBG: chan_5 -> D 2.2.3
2018-03-17 13:14:50 scdaemon[991] DBG: chan_5 -> OK
2018-03-17 13:14:50 scdaemon[991] DBG: chan_5 <- SERIALNO openpgp
2018-03-17 13:14:50 scdaemon[991] DBG: enter: apdu_open_reader: portstr=Ledger Token [Nano S] (0001) 01 00
2018-03-17 13:14:50 scdaemon[991] reader slot 0: not connected
2018-03-17 13:14:50 scdaemon[991] DBG: leave: apdu_open_reader => slot=0 [pc/sc]
2018-03-17 13:14:50 scdaemon[991] DBG: enter: apdu_connect: slot=0
2018-03-17 13:14:50 scdaemon[991] pcsc_connect failed: unknown reader (0x80100009)
2018-03-17 13:14:50 scdaemon[991] reader slot 0: not connected
2018-03-17 13:14:50 scdaemon[991] DBG: leave: apdu_connect => sw=0x1000c
2018-03-17 13:14:50 scdaemon[991] DBG: enter: apdu_close_reader: slot=0
2018-03-17 13:14:50 scdaemon[991] DBG: enter: apdu_disconnect: slot=0
2018-03-17 13:14:50 scdaemon[991] DBG: leave: apdu_disconnect => sw=0x0
2018-03-17 13:14:50 scdaemon[991] DBG: leave: apdu_close_reader => 0x0 (close_reader)
2018-03-17 13:14:50 scdaemon[991] DBG: chan_5 -> ERR 100696144 Operation not supported by device <SCD>
2018-03-17 13:14:50 scdaemon[991] DBG: chan_5 <- RESTART
2018-03-17 13:14:50 scdaemon[991] DBG: chan_5 -> OK
cslashm commented 6 years ago

done

dantrauner commented 6 years ago

I still seem to be getting ERR 100696144 Operation not supported by device – any suggestions? I'll try starting from scratch just in case now that the app is rebuilt for the latest FW (thanks btw!)

luginbash commented 6 years ago

me2 btw, do I really really have to re-enable SIP if am on Mac?

dantrauner commented 6 years ago

@luginbash yes, I'd strongly recommend keeping it on unless you have a critical use case for leaving it off and know what you're doing, as it makes it a bit harder for malicious software to establish persistence. You should only need to turn it off temporarily if you're trying to one-time modify files in /System, /usr, /bin, or /sbin.

savenas commented 6 years ago

Do have the latest drivers for Ledger Nano S

system_profiler SPSmartCardsDataType
SmartCards:

    Readers:

      #01: Ledger Nano S (ATR:<3b00>)

    Reader Drivers:

      #01: org.debian.alioth.pcsclite.smartcardccid:1.4.27 (/usr/libexec/SmartCardServices/drivers/ifd-ccid.bundle)
      #02: org.debian.alioth.pcsclite.smartcardccid:1.4.30 (/usr/local/libexec/SmartCardServices/drivers/ifd-ccid.bundle)

I made a tutorial for GPG tools, Ledger nano S and Mojave. Please follow the link below: https://github.com/savenas/docs/blob/master/gpg_ledger_mojave.md