Re: Is this supposed to happen?

2020-07-17 Thread Werner Koch via Gnupg-users
On Fri, 17 Jul 2020 09:17, Ayoub Misherghi said:
> Is this supposed to happen?

Yes.

As almost all Unix tools, gpg defaults to take input from stdin and
writes output to stdout.  Because you did not use --armor the output is
binary and messes up your tty.  The reason why already get some output
despite that you have nothing typed in yet (stdin is per default the
current tty) is due to buffering: gpg already outputs the OpenPGP header
data (encrypted session key) and now waits for the actual data to show
up at stdin.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Re: Detached signature file.

2020-07-17 Thread Werner Koch via Gnupg-users
On Thu, 16 Jul 2020 20:52, Ayoub Misherghi said:
> Is it possible to add content to a detached signature file?

You may add other detached signatures (for the same file) by simply
concatenating them.  See the attached script for an example.

In case you meant whether you can add meta data, see the option
--set-notation.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
#!/bin/sh
# Append a signature to an existing detached signature.
# Copyright (C) 2016 g10 Code GmbH
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

set -e
PGM="$(basename $0)"
GPGV=gpgv

# Prints usage information.
usage()
{
cat <&2
	;;
*)
break;
;;
esac
shift
done

if [ $# -ne 2 ]; then
usage 1 1>&2
fi
tarball="$1"
tarballsig="$1".sig
newsig="$2"

[ -n "$verbose" ] && echo "tarball: $tarball"
[ -n "$verbose" ] && echo "sig ...: $tarballsig"
[ -n "$verbose" ] && echo "newsig : $newsig"

if ! $GPGV --version >/dev/null 2>/dev/null ; then
echo "${PGM}: Command \"gpgv\" is not installed" >&2
exit 1
fi

distsigkey="/usr/local/share/gnupg/distsigkey.gpg"
if [ ! -f "$distsigkey" ]; then
distsigkey="/usr/share/gnupg/distsigkey.gpg"
fi
if [ ! -f "$distsigkey" ]; then
echo "${PGM}: File \"$distsigkey\" is not installed" >&2
exit 1
fi

if ! $GPGV $verbose --keyring "$distsigkey" \
   -- "$tarballsig" "$tarball" 2>/dev/null ; then
echo "${PGM}: Existing signature '$tarballsig' does not verify" >&2
exit 1
fi

if ! $GPGV $verbose --keyring "$distsigkey" \
   -- "$newsig" "$tarball" 2>/dev/null; then
echo "${PGM}: New signature '$newsig' does not verify" >&2
exit 1
fi

cat "$newsig" >> "$tarballsig"

if ! $GPGV $verbose --keyring "$distsigkey" \
   -- "$tarballsig" "$tarball"; then
echo "${PGM}: Update signature '$tarballsig' does not verify" >&2
exit 1
fi


signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Is this supposed to happen?

2020-07-17 Thread Ayoub Misherghi via Gnupg-users


Is this supposed to happen?


ayoub@vboxpwfl:~/testdir$ ls

textfile  textfile.dcr  textfile.gpg
ayoub@vboxpwfl:~/testdir$ gpg -r sentry -e
�^�z�OI�@l��{
 �3�7���\C�Wa��$1�Y�
    �E2��%0[܌�:͋��h��ͳ�
���k�l���
 %
��]�yB}���^C
gpg: signal Interrupt caught ... exiting

ayoub@vboxpwfl:~/testdir$


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

Re: Newbie question.

2020-07-17 Thread Ayoub Misherghi via Gnupg-users

  
  

It is working now. The problem was in gpg-agent.conf that I
  forgot about. I did not do a re-install. 

I learned from this list. Thanks.
  


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