file extension confusion: --clearsign makes binary .asc

Werner Koch wk at
Thu Jul 25 19:17:03 CEST 2013

On Thu, 25 Jul 2013 18:32, hans at said:

> base64-encoded binary data?  If so, I think that running "gpg --clearsign" on
> a binary file should give a warning that its not a supported format.

The question is what is a binary file?  It is hard for a machine to
figure that out and Unix tradition does not distinguish between binary
and plain text (in contrast to Windows).

> gpg 1.4.11 and gpg2 2.0.17.  In both cases, the resulting file was not ASCII,
> but the format I described: binary data and ASCII signature.  I attached the

Sure.  If you don't want that you need to base64 encode the to be signed
data first.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-devel mailing list