<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="Noto Serif">Hello,</font></p>
    <p><font face="Noto Serif">I try to install my old Gnuk key on fresh
        LinuxMint 22.1 install (based on Ubuntu 24.04) with gnupg
        2.4.4/libcrypt 1.10.3  and in encountered some problems</font></p>
    <p><font face="Noto Serif">I read topics from January 2018 to now
        and don't find anything about that.<br>
      </font></p>
    <p><font face="Noto Serif">---------------------------------------------------------------</font></p>
    <p><font face="Noto Serif">My configuration with SSH support<br>
      </font></p>
    <p><font face="Noto Serif">I follow Niibe guide :
        <a class="moz-txt-link-freetext" href="https://www.fsij.org/doc-gnuk/">https://www.fsij.org/doc-gnuk/</a></font></p>
    <p><font face="Noto Serif">- add scdaemon & gpa<br>
      </font></p>
    <p><font face="Noto Serif">- create /etc/udev/rules.d/60-gnuk.rules
        (not packaged on ubuntu with scdaemon)</font></p>
    <p><font face="Noto Serif">- create gpg-agent.conf with
        enable-ssh-agent</font></p>
    <p><font face="Noto Serif">- stop ssh-agent and comment
        use-ssh-agent in  </font>/etc/X11/Xsession.options</p>
    <p>- add to my .bashrc</p>
    <p>    export GPG_TTY=$(tty)</p>
    <p>    gpg-connect-agent updatestartuptty /bye >/dev/null</p>
    <p>    unset SSH_AGENT_PID</p>
    <p>    if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then</p>
    <p>    export SSH_AUTH_SOCK="$(gpgconf --list-dirs
      agent-ssh-socket)"</p>
    <p>    fi<br>
    </p>
    <p>- import my public key with gpg --import publickey.asc</p>
    <p>- run gpg --card-status for recreate stubs.</p>
    <p>- with gpa change trust to ultimate<br>
    </p>
    <p>NB : gnome-keyring is not install</p>
    <p>---------------------------------------------------------------</p>
    <p>- I can see my gnuk key with lsusb</p>
    <p>- I can't see my subskeys with gpg --list-keys</p>
    <p>    gpg --list-keys <br>
          /home/tyty/.gnupg/pubring.kbx<br>
          -----------------------------<br>
          pub   rsa4096 2019-07-02 [C] [expirée : 2022-07-01]</p>
    <p>          3AC88726F43C20286B77751A1FBE94346FAC9A31</p>
    <p>    uid          [ expirée ] <a class="moz-txt-link-abbreviated" href="mailto:yoko.san@free.fr">yoko.san@free.fr</a><br>
    </p>
    <p>- I can't see my subkeys with GPA</p>
    <p>- My subkeys are create in ~/.gnupg/private-keys-v1.d/<br>
    </p>
    <p>- When i run gpg --card-status or gpg-card i can see my privates
      keys as stubs</p>
    <p>    gpg --card-status</p>
    <p>    Reader ...........: 234B:0000:FSIJ-1.2.10-87195054:0</p>
    <p>        Application ID ...: D276000124010200FFFE871950540000</p>
    <p>    Application type .: OpenPGP : 2.0</p>
    <p>    Manufacturer .....: unmanaged S/N range</p>
    <p>    Serial number ....: 87195054</p>
    <p>     of cardholder: Clef SSH  <br>
    </p>
    <p>    Language prefs ...: fr</p>
    <p>    Salutation .......: <br>
    </p>
    <p>    URL of public key : [non positionné]</p>
    <p>    Login data .......: [non positionné]</p>
    <p>    Signature PIN ....: forcé</p>
    <p>    Key attributes ...: ed25519 cv25519 ed25519</p>
    <p>    Max. PIN lengths .: 127 127 127</p>
    <p>    PIN retry counter : 3 3 3</p>
    <p>        Signature counter : 11</p>
    <p>KDF setting ......: off</p>
    <p>     key ....: D731 714E 624F D926 08F9  6160 4CB3 0018 D47A 6367</p>
    <p>          created ....: 2019-07-02 14:46:07</p>
    <p>    Encryption key....: 2952 3ACD B92C 78A7 982D  ABE1 71F6 F98C
      A312 34FD</p>
    <p>          created ....: 2019-07-02 14:47:50</p>
    <p>    Authentication key: B590 F576 B10A 6255 1795  783A ABBB F6B4
      F88A 354D</p>
    <p>          created ....: 2019-07-02 14:47:14</p>
    <p>    General key info..: sub  ed25519/4CB30018D47A6367 2019-07-02
      <a class="moz-txt-link-abbreviated" href="mailto:yoko.san@free.fr">yoko.san@free.fr</a></p>
    <p>    sec#  rsa4096/1FBE94346FAC9A31  créé : 2019-07-02  expire :
      2022-07-01</p>
    <p>    ssb>  ed25519/4CB30018D47A6367  créé : 2019-07-02 
      expire : 2022-07-01</p>
    <p>                                    nº de carte : FFFE 87195054</p>
    <p>    ssb>  ed25519/ABBBF6B4F88A354D  créé : 2019-07-02 
      expire : 2022-07-01</p>
    <p>                                    nº de carte : FFFE 87195054</p>
    <p>    ssb>  cv25519/71F6F98CA31234FD  créé : 2019-07-02 
      expire : 2022-07-01</p>
    <p>                                    nº de carte : FFFE 87195054</p>
    <p>---------------------------------------------------------------</p>
    <p>Did i miss something ?</p>
    <p>Thank you for you help.</p>
    <p>Best regards<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div id="grammalecte_menu_main_button_shadow_host"
      style="width: 0px; height: 0px;"></div>
  </body>
</html>