Hallo Herr Koch (Ich nehme jetzt mal an, dass sie deutsch sprechen...)

Besten Dank für Ihre Antwort! Ich benutze GnuGP das erste Mal und kenne mich 
deshalb nicht so gut aus ;)

Frage:
Gibt es eine Möglichkeit, den KeyGrip aus dem KeyRing z.B. via --homedir <Pfad 
zum KeyRing> zu ermitteln?

Oder noch besser den KeyGrip gleich dynamisch im dem von Ihnen vorgeschlagenen 
Befehl zu verwenden?

Unsere Anforderung ist es, Files aus einer .NET Applikation auf einem Windows 
Server zu signieren und zu verschlüsseln.
Da dies auf dem Server geschieht, darf es keine User Interaktion geben. Deshalb 
kein Passphrase Abfragedialog ;)


Herzlichen Dank für Ihre Hilfe!

Freundliche Grüsse
Mike Kaufmann

-----Ursprüngliche Nachricht-----
Von: Werner Koch [mailto:w...@gnupg.org] 
Gesendet: Freitag, 10. Juni 2016 09:51
An: Mike Kaufmann <m.kaufm...@infotech.li>
Cc: gnupg-users@gnupg.org
Betreff: Re: WINDOWS - Adding passphrase to gpg via command line

Hi!

On Thu,  9 Jun 2016 15:29, m.kaufm...@infotech.li said:

> Im am using GnuPG v2.1.11.59877 on Windows 10. The utility 
> gpg-preset-passphrase.exe is not available on my system. Is there a 
> location I can download this tool and install on my machine? I would 
> like to use the tool, to set the password on gpg-agent.

I think that gpg-preset-passpharse is not the right tool and you either should 
not set a passphrase for the key or use the gpg option 
--pinentry-mode=loopback.  However, I can distribute gpg-preset-passpharse with 
the next Windows installer (2.1.13) - hopefully next week.

There is a workaround, though:

  gpg-connect-agent 'PRESET_PASSPHRASE <keygrip> -1 <passphrase>' /bye

The <keygrip> is what you would also use with gpg-preset-passphrase.
The <passphrase> is, well, you passphrase which needs to be percent-escaped 
(e.g. "foo far" -> "foo%20bar").  If you do not want to type the passphrase, 
gpg-connect-agent has a simple script language which can help here.


Shalom-Salam,

   Werner


--
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
    /* EFH in Erkrath: https://alt-hochdahl.de/haus */


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to