Just starting having this issue with the latest master builds of tpm2_tools ( also latest tss/abrmd )

I have a small file to be signed

$ls -l hash.file
-rw-r--r-- 1 xxx xxx 64 huhti  1 14:10 hash.file

$tpm2_sign -V -c 0x81010003 -G sha256 -m hash.file -o hash.sig
WARNING:esys:src/tss2-esys/api/Esys_Sign.c:340:Esys_Sign_Finish() Received TPM Error
ERROR:esys:src/tss2-esys/api/Esys_Sign.c:133:Esys_Sign() Esys Finish ErrorCode (0x000003e0)
ERROR on line: "81" in file: "./lib/log.h": Eys_Sign(0x3E0) - tpm:parameter(3):invalid ticket
ERROR on line: "171" in file: "tools/tpm2_tool.c": Unable to run tpm2_sign

The key at 0x8101003 is a signing key (actually it is the AK)

- handle: 0x81010003
    value: sha256
    raw: 0xb
    value: fixedtpm|fixedparent|sensitivedataorigin|userwithauth|restricted|sign
    raw: 0x50072
    value: rsa
    raw: 0x1

Working from the test file (./test/integration/tests/sign.sh) the syntax appears correct for this command (the man file is different)

    tpm2_sign -Q -c $handle_signing_key -G $alg_hash -m $file_input_data -o $file_output_data

Machine details:
$uname -a
Linux ioliver-ThinkPad-X1-Carbon-5th 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$cat /etc/issue
Ubuntu 18.04.2 LTS



Dr. Ian Oliver
Privacy Engineering:  via Amazon
Twitter: @i_j_oliver