Skip to main content
Associate II
Nov 5, 2026 12:51 PM UTC
Solved

How to Restrict Debug Authentication to Only Authorized Users After Certificate-Based Provisioning on STM32H7S78-DK?

Hello ST Community,

I am working on secure provisioning and Debug Authentication using the STM32H7S78-DK board (STM32H7RS series) with the following software:

  • STM32Cube_FW_H7RS_V1.3.0

  • STM32CubeProgrammer v2.21.0

  • Certificate-based Debug Authentication

  • OEMiROT / STiRoT provisioning

Current Scenario

I have successfully provisioned the STM32H7S78-DK using the certificate-based provisioning method.

After provisioning, the device enters the CLOSED lifecycle state.

However, I have observed the following behavior:

When another user uses the Debug Authentication .bat file provided in the STM32Cube_FW_H7RS repository, they are also able to perform Debug Authentication successfully.

Expected Security Behavior

My requirement is to restrict Debug Authentication to only specifically authorized users.

For example:

  1. User A provisions the device using their authorized certificates and keys.

  2. User A should be able to perform Debug Authentication successfully.

  3. User B, who does not have the authorized credentials, should fail Debug Authentication, even if they have access to the same repository and its Debug Authentication .bat scripts.

  4. Only users whose credentials were authorized during provisioning should be able to authenticate and access the debug interface.

Questions

  1. Is it possible to bind Debug Authentication permissions to a specific user's private key or certificate during provisioning?

  2. How can we prevent other users from successfully performing Debug Authentication using the repository-provided .bat files?

  3. Which provisioning configuration or certificate-chain settings should be modified to restrict Debug Authentication to authorized users only?

  4. Is there any mechanism to revoke or reject Debug Authentication requests from unauthorized users?

  5. What is the recommended approach for implementing user-specific Debug Authentication on STM32H7RS devices?

Expected Result: Debug Authentication should succeed only for the authorized user who possesses the corresponding private key. All other users without the authorized private key should receive a Debug Authentication failure.

Could you please provide the recommended configuration and step-by-step implementation procedure for achieving this?

Thank you.

Frantz LEFRERE
Frantz LEFREREBest answer
ST Technical Moderator
Nov 5, 2026 1:09 PM UTC

Hello ​@Kshor ,

The debug authentication certificate chain serves exactly this purpose. Some information is available in AN6008.
You can find a detailled explanation about this mechanism in a video for STM32H5, but the principle remains the same for the STM32H7S.
STM32H5 Secure Manager - 07 Debug authentication (certificate chain details start at 15:04) 
Best regards,

Frantz

 

3 replies

Frantz LEFRERE
Frantz LEFREREBest answer
ST Technical Moderator
Nov 5, 2026 1:09 PM UTC

Hello ​@Kshor ,

The debug authentication certificate chain serves exactly this purpose. Some information is available in AN6008.
You can find a detailled explanation about this mechanism in a video for STM32H5, but the principle remains the same for the STM32H7S.
STM32H5 Secure Manager - 07 Debug authentication (certificate chain details start at 15:04) 
Best regards,

Frantz

 

KshorAuthor
Associate II
Nov 6, 2026 7:33 AM UTC

Thank you for your response.

I would like to create my own public and private key pair for certificate-based Debug Authentication.

Could you please guide me on how to generate my own ECC private key and corresponding public key using OpenSSL or STM32_KeyGen_CLI?

Also, could you clarify the following?

  1. How can I generate my own root, intermediate, and leaf private/public key pairs?

  2. How can I generate certificates using these public keys?

  3. Which public key or certificate needs to be provisioned into the STM32H7S78-DK for Debug Authentication?

  4. How can I ensure that only users possessing my authorized private key can successfully perform Debug Authentication?

My objective is to prevent other users from authenticating using the default repository-provided Debug Authentication credentials.

Thank you for your guidance.

KshorAuthor
Associate II
Nov 6, 2026 9:08 AM UTC

Thank you for your support and guidance. I followed the recommended steps, and everything is working as expected now. Debug Authentication is working successfully with my own certificates and keys.

I really appreciate your help!