Skip to main content
NPlöt.1
Associate
June 23, 2022
Question

Support for mbedtls/PKCS7 on a Nucleo-F446RE board

  • June 23, 2022
  • 3 replies
  • 2536 views

Hi, I need to implement certificate verification based on PKCS7. I use STM32CubeIDE build 12015_20220302_0855.

I have enabled the MBEDTLS middleware module and I see that some support for mbedTLS is added to the project, but PKCS7 seems to be missing.

Anything I can do, or is this simply unsupported?

This topic has been closed for replies.

3 replies

Andrew Neil
Super User
June 23, 2022

"PKCS7 seems to be missing"

Could you expand on why you say that?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
NPlöt.1
NPlöt.1Author
Associate
June 23, 2022

Well, Andrew, first I noticed there are some pkcs related include files, but only for pkcs5, 11, 12. None for 7. Eventually I grepped all the headers in the Middlewares folder in the project, and pkcs7 did not appear anywhere.

Andrew Neil
Super User
June 23, 2022

so is your code failing to build for lack of those headers?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
NPlöt.1
NPlöt.1Author
Associate
June 23, 2022

Yes. I have a given algorithm which uses things like mbedtls_pkcs7_init(), and I cannot find the header file where this is defined.

NPlöt.1
NPlöt.1Author
Associate
June 23, 2022

Yes. I have a given algorithm which uses things like mbedtls_pkcs7_init(), and I cannot find the header file where this is defined.