Open a ticket
Chat with us

Failed To Fetch Device Certificate. Tpm Public Key Match Failed. Access

// Load stored public key from secure storage ret = secure_storage_read("device_pubkey", stored_pubkey, sizeof(stored_pubkey)); if (ret == STORAGE_NOT_FOUND) // First enrollment – just store and proceed secure_storage_write("device_pubkey", tpm_pubkey); return enroll_device(ctx);

// Compare if (memcmp(tpm_pubkey, stored_pubkey, pubkey_len) != 0) // MISMATCH – force re-enrollment log_error("TPM public key mismatch – re-enrolling"); secure_storage_write("device_pubkey", tpm_pubkey); return enroll_device(ctx);

The error "failed to fetch device certificate. tpm public key match failed." typically occurs in systems that use a to securely store a device private key, and then attempt to retrieve a corresponding certificate (often from a provisioning server like an EST server or cloud IoT service).

The core issue is:

License expired?

Request a free trial license extension in case you need more time to evaluate our product. You will receive your new trial license shortly after you fill out the application.

Request now
Partner program

Cloud services and managed services providers can benefit with our products. The Terminalworks Partner Program enables you to buy license packages of Terminalworks products and resell them.

Apply now
Contact information

Technical Support Phone

Sales Phone

Telephone support available from 10 AM till 10 PM Central European Time
Contact us
Copyright © 2026 Terminalworks. All Rights Reserved