Unfortunately the pkcs11 git repo you took this from wasn't in sync with the tpm2-tools project it seems (it looks like they changed the command line parameters for the tpm2_createprimary tool):
tpm2_ptool init --pobj-pin pin
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/tpm2_pkcs11/commandlets_store.py", line 96, in call
ctx = tpm2.createprimary(ownerauth, pobjauth)
File "/usr/lib/python3.7/site-packages/tpm2_pkcs11/tpm2.py", line 32, in createprimary
stderr)
RuntimeError: Could not execute tpm2_createprimary: b"tpm2_createprimary: invalid option -- 'p'\n"
Could not execute tpm2_createprimary: b"tpm2_createprimary: invalid option -- 'p'\n"
I see the same issue with the upstream sources and Fedora 29 (did not manage to update to F30 yet). Could it be outdated tpm2-tools package in Fedora 29 or upstream issue? I built the current master in copr if you want to try:
I am on F30. It looks like it's due to an outdated tpm2-tools package because the tpm2_createprimary from the git repo master tip does understand the -p option, while the one in F30 does not understand it.
This update has reached 7 days in testing and can be pushed to stable now if the maintainer wishes
This update has been submitted for testing by jjelen.
This update test gating status has been changed to 'waiting'.
This update test gating status has been changed to 'ignored'.
Unfortunately the pkcs11 git repo you took this from wasn't in sync with the tpm2-tools project it seems (it looks like they changed the command line parameters for the tpm2_createprimary tool):
tpm2_ptool init --pobj-pin pin
Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/tpm2_pkcs11/commandlets_store.py", line 96, in call ctx = tpm2.createprimary(ownerauth, pobjauth) File "/usr/lib/python3.7/site-packages/tpm2_pkcs11/tpm2.py", line 32, in createprimary stderr) RuntimeError: Could not execute tpm2_createprimary: b"tpm2_createprimary: invalid option -- 'p'\n" Could not execute tpm2_createprimary: b"tpm2_createprimary: invalid option -- 'p'\n"
I just had done some test with this stuff yesterday (https://github.com/tpm2-software/tpm2-pkcs11/issues/44) but took everything from the git repos master branches' tips.
Properly formatted:
This update has been pushed to testing.
Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.
I see the same issue with the upstream sources and Fedora 29 (did not manage to update to F30 yet). Could it be outdated
tpm2-tools
package in Fedora 29 or upstream issue? I built the current master in copr if you want to try:https://copr.fedorainfracloud.org/coprs/jjelen/tpm2-pkcs11/build/924447/
I am on F30. It looks like it's due to an outdated
tpm2-tools
package because the tpm2_createprimary from the git repo master tip does understand the-p
option, while the one in F30 does not understand it.This update has reached 7 days in testing and can be pushed to stable now if the maintainer wishes
This update's test gating status has been changed to 'greenwave_failed'.
This update's test gating status has been changed to 'ignored'.
This update's test gating status has been changed to 'greenwave_failed'.
This update's test gating status has been changed to 'ignored'.
This update's test gating status has been changed to 'greenwave_failed'.
This update's test gating status has been changed to 'ignored'.
This update's test gating status has been changed to 'greenwave_failed'.
This update's test gating status has been changed to 'ignored'.
This update's test gating status has been changed to 'greenwave_failed'.
This update's test gating status has been changed to 'ignored'.
This update's test gating status has been changed to 'greenwave_failed'.
This update's test gating status has been changed to 'ignored'.
This update's test gating status has been changed to 'greenwave_failed'.
This update's test gating status has been changed to 'ignored'.
This update's test gating status has been changed to 'greenwave_failed'.
This update's test gating status has been changed to 'ignored'.
This update is marked obsolete because the F30 release is archived.