Re: Convert a .sig file to .asc file (is it possible)?
On Mon, 14 Nov 2011 12:32, csabi@gmail.com said: >> If i change the following lines: > -BEGIN PGP ARMORED FILE- > -END PGP ARMORED FILE- > To the following lines: > > -BEGIN PGP SIGNATURE- > -END PGP SIGNATURE- > > It was enough? Yes. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Convert a .sig file to .asc file (is it possible)?
Hi! 2011.11.14. 11:52 keltezéssel, Werner Koch írta: > On Sun, 13 Nov 2011 17:03, src=gn...@lion.leolix.org said: > >> gpg --enarmor bla.sig > you need to edit the "-" header/footer lines after that. > > If i change the following lines: -BEGIN PGP ARMORED FILE- -END PGP ARMORED FILE- To the following lines: -BEGIN PGP SIGNATURE- -END PGP SIGNATURE- It was enough? Best regards, Csabi ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Convert a .sig file to .asc file (is it possible)?
On Sun, 13 Nov 2011 17:03, src=gn...@lion.leolix.org said: > gpg --enarmor bla.sig you need to edit the "-" header/footer lines after that. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Convert a .sig file to .asc file (is it possible)?
reflum, On Sat, 2011-11-12 at 10:17 +0100, Csabi wrote: > Hi all! > > It is possible to convert an already created .sig file to .asc file? > (ASCII armored output)? > > I would like to convert some .sig (detached signature) files to .asc files. > Can anybody write a method how can i do it? > > Best regards, Csabi gpg --enarmor bla.sig -- Philipp. (Rah of PH2) signature.asc Description: This is a digitally signed message part ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Convert a .sig file to .asc file (is it possible)?
Thx the script, i will try it. Many thanx! Best regards, Csabi ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Convert a .sig file to .asc file (is it possible)?
On 11/12/2011 04:17 AM, Csabi wrote: > It is possible to convert an already created .sig file to .asc file? > (ASCII armored output)? ascii armor is just a standard header and footer, wrapped around base64-encoded data plus a checksum: https://tools.ietf.org/html/rfc4880#section-6 If you have perl installed, you can use the attached script to convert from a binary version to an ascii-armored version. Invoke it like: openpgp-armor-convert < foo.sig > foo.asc hth, --dkg #!/usr/bin/perl -wT # Author: Daniel Kahn Gillmor # Date: 2011-11-12 # License: GPLv3+ # Convert a raw OpenPGP bytestring to an ascii-armored block # as specified in: # # https://tools.ietf.org/html/rfc4880#section-6 # pass the bytestring on stdin; armored output goes to stdout # accepts one argument for the type of OpenPGP block, defaults to # SIGNATURE # FIXME: inspect the bytestream and deduce the type of block directly # FIXME: work as a filter to be able to encode arbitrarily long # strings instead of bringing it all into RAM at once. # FIXME: send this Digest::CRC spec upstream to make it easier for # future users. # BUG: $ctx->b64digest goes into an infinite loop with width=24 # needs reporting use strict; use warnings; use Digest::CRC; use MIME::Base64; my $ctx = Digest::CRC->new(width => 24, init=> 0xB704CE, xorout => 0x00, refout => 0, poly => 0x864CFB, refin => 0, cont => 1); my $data; my $type = $ARGV[0]; $type = 'SIGNATURE' if (! defined($type)); $type = uc($type); local $/; # enable "slurp" mode $data = ; $ctx->add($data); printf("-BEGIN PGP %s-\n\n%s=%s-END PGP %s-\n", $type, encode_base64($data), encode_base64(pack("H*", sprintf("%06x", $ctx->digest))), $type); signature.asc Description: OpenPGP digital signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Convert a .sig file to .asc file (is it possible)?
Hi all! It is possible to convert an already created .sig file to .asc file? (ASCII armored output)? I would like to convert some .sig (detached signature) files to .asc files. Can anybody write a method how can i do it? Best regards, Csabi ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users