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

Remove building of tpm2-openssl from test iak-idevid-register-with-certificates #519

Open
Isaac-Matthews opened this issue Nov 17, 2023 · 0 comments

Comments

@Isaac-Matthews
Copy link
Contributor

Currently, tpm2-openssl is being built as part of the test iak-idevid-register-with-certificates:

    rlPhaseStartSetup "Install tpm2-openssl to generate csrs with TPM keys"
        rlRun "dnf -y install autoconf automake libtool m4 autoconf-archive"
        rlRun "wget -c ${TPM2_OPENSSL} -O - | tar -xz"
        rlRun "cd tpm2-openssl-1.2.0"
        rlRun "./configure"
        rlRun "make"
        rlRun "make install"
        rlRun "cd .."
    rlPhaseEnd

This is needed to allow the TPM to be used as a provider with openssl in creating a CSR, e.g.:

rlRun "openssl req -config ../ca/intermediate/intermediate.cnf -provider tpm2 -provider default \
            -propquery '?provider=tpm2' -new -key handle:$(cat idevid.handle) -out ../ca/intermediate/csr/idevid.csr.pem"

Ideally, the building should be replaced at some point, either if it is added as a package, or maybe in a different workaround (e.g. copr).

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