Skip to main content
SBalo.1
Associate
April 3, 2023
Solved

Where can I find algorithm to generate license file for SFI upload to STM32U585?

  • April 3, 2023
  • 7 replies
  • 1699 views

I'd like to use my own server instead of HSM card. I can't find any information how the license file is generated except the fact that it is possible as mentioned in AN5054.

Slawek

This topic has been closed for replies.
Best answer by SBalo.1

Thank you Chloe.

I guess there is a private key in HSM card provided by ST, which is used to sign generated licence file which is then used to allow secure bootloader to receive SFI. ST wrote in AN5054 "There is no STMicroelectronics secret involved in license generation, so each firmware provider is free to choose their preferred method.", except the must for buying a limited HSM card - am I right?

Best Regards

Slawek

7 replies

Chloe Meunier
ST Employee
April 3, 2023

Hello Slawek,

Did you try the CLI STM32CubeProgrammer commands :

0693W00000bhPlaQAE.pngBR

Chloé

SBalo.1
SBalo.1Author
Associate
April 4, 2023

Hello Chloe,

thank you for the answer. I understand these CLI commands as getting the license from attached Smart Card Reader with HSM card inserted - or am I wrong? Both have description "...if counter is not null".

SBalo.1
SBalo.1Author
Associate
April 4, 2023

My goal is to prepare software/server to create this file by myself - of course getting ID from programmed microcontroller and using my own nonce/AES key which were used to encrypt firmware (SFI).

Chloe Meunier
ST Employee
April 4, 2023

Hello Slawek,

" I understand these CLI commands as getting the license from attached Smart Card Reader with HSM card inserted - or am I wrong?" : In fact you need an HSM to do that.

You can't perform all these operations without any HSM.

Best Regards

Chloé

SBalo.1
SBalo.1AuthorBest answer
Associate
April 4, 2023

Thank you Chloe.

I guess there is a private key in HSM card provided by ST, which is used to sign generated licence file which is then used to allow secure bootloader to receive SFI. ST wrote in AN5054 "There is no STMicroelectronics secret involved in license generation, so each firmware provider is free to choose their preferred method.", except the must for buying a limited HSM card - am I right?

Best Regards

Slawek

Chloe Meunier
ST Employee
April 4, 2023

Yes your are right.

Best Regards

Chloé

SBalo.1
SBalo.1Author
Associate
April 4, 2023

Thank you Chloe, now it's clear.

Best Regards

Slawek