Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent database upgrade implementation #826

Open
PeterVagany opened this issue Feb 28, 2023 · 0 comments
Open

Inconsistent database upgrade implementation #826

PeterVagany opened this issue Feb 28, 2023 · 0 comments

Comments

@PeterVagany
Copy link
Contributor

The C library refuses to load a successfully upgraded database:

ERROR: Backup DB exists at "/etc/tpm2_pkcs11/tpm2_pkcs11.sqlite3.old" not overwriting. Refusing to run, see https://github.com/tpm2-software/tpm2-pkcs11/blob/master/docs/DB_UPGRADE.md.

The DB was upgraded with tpm2_ptool, which stores the old DB after upgrade as $TPM2_PKCS11_STORE/tpm2_pkcs11.sqlite3.old, contrary to what is in DB_UPGRADE.md.

After removing the ".old" DB manually, the C library works again with $TPM2_PKCS11_STORE/tpm2_pkcs11.sqlite3.

Tested with 1.9.0, trying to use a DB created with 1.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant