Fix wrong OID in keyfile (#31262)
See https://github.com/fleetdm/fleet/pull/31131#pullrequestreview-3055271720. Thanks @Foxboron!
This commit is contained in:
@@ -255,7 +255,7 @@ func (t *tpm2SecureHW) selectBestECCCurve() (tpm2.TPMECCCurve, string) {
|
||||
|
||||
func (t *tpm2SecureHW) saveTPMKeyFile(privateKey tpm2.TPM2BPrivate, publicKey tpm2.TPM2BPublic) error {
|
||||
k := keyfile.NewTPMKey(
|
||||
keyfile.OIDOldLoadableKey,
|
||||
keyfile.OIDLoadableKey,
|
||||
publicKey,
|
||||
privateKey,
|
||||
keyfile.WithDescription("fleetd httpsig key"),
|
||||
|
||||
Reference in New Issue
Block a user