GnuPG - Wechsel des Schlüssels....wie legt man einen neuen Standardschlüssel fest?

  • Ich habe meinen bisherigen Schlüssel gelöscht und einen mit 4000kbit erzeugt. Nun muss ich offenbar noch diesen als Standard festlegen? Wie geht das? The Bat gibt mir jedenfalls eine Fehlermeldung ohne Fehlertext und verschlüsselt nicht mehr. Weiss hier jemand was?

  • In dem du den mit der Schlüssel-ID in der gpg.conf als solchen festlegst.

    //EDIT:
    Die Kommandozeilenoptionen mit -- korrespondieren zu denen in gpg.conf (die haben kein -- davor!).

    Kommandozeilenoptionen:

    Zitat

    --default-key name
    Use name as the default key to sign with. If this option is not used, the default key is the first key found in the secret keyring. Note that -u or --local-user overrides this option.
    --default-recipient name
    Use name as default recipient if option --recipient is not used and don't ask if this is a valid one. name must be non-empty.
    --default-recipient-self
    Use the default key as default recipient if option --recipient is not used and don't ask if this is a valid one. The default key is the first one from the secret keyring or the one set with --default-key.

    Siehe auch http://www.gnupg.org/documentation/…on-Options.html


    The Bat! Pro 11.x BETA (32bit) | Win 11 Pro x64 | GnuPG 2.4.x | XMP + Regula

    Wer mich Er oder der Drache nennt, bekommt von der Drachin Pratze und Feuer zu spüren.

    Einmal editiert, zuletzt von GwenDragon (14. November 2013 um 09:56)

  • Die gpg.conf sollte selbst erstellt werden und dann in %APPDATA%\gnupg gespeichert werden.

    Natürlich kannst du die gpg.conf auch über Kleopatra -> Einstellungen -> Kleopatra einrichten -> GnuPG System oder GPA -> Bearbeiten -> Backend-Einstellungen ändern.
    Allerdings ist es so, dass die Benutzeroberfläche nicht alle Einstellungen, die mal gebraucht werden könnten zulässt.


    The Bat! Pro 11.x BETA (32bit) | Win 11 Pro x64 | GnuPG 2.4.x | XMP + Regula

    Wer mich Er oder der Drache nennt, bekommt von der Drachin Pratze und Feuer zu spüren.

  • Es liegt unter C:\Program Files (x86)\GNU\GnuPG\share\gnupg\gpg-conf.skel eine Beispieldatei (namens gpg-conf.skel) für gpg.conf, falls es dich interessiert was da so drin stehen kann.


    The Bat! Pro 11.x BETA (32bit) | Win 11 Pro x64 | GnuPG 2.4.x | XMP + Regula

    Wer mich Er oder der Drache nennt, bekommt von der Drachin Pratze und Feuer zu spüren.