This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Provision certificates from the certificates.h is not setting the #define

I have just switched from SDK version 1.0.0 to SDK 1.1.0 and I am using the MQTT FOTA example

I had the example project working when I was using v1.0.0 of the SDK

I have checked "Provision certificates from the certificates.h file" and clicked the configure button

but in main.c the define at line 28 has not been set so the certificates .h file is not included.

I notice that the name of the define in the menu settings is <PROVISION_CERTIFICATES>

and in the code on line 28 it is CONFIG_PROVISION_CERTIFICATES

Parents
  • Hi.

     

    I notice that the name of the define in the menu settings is <PROVISION_CERTIFICATES>

    and in the code on line 28 it is CONFIG_PROVISION_CERTIFICATES

     Yes, this is correct. A Kconfig option will generate the #define CONFIG_<name of option>.

     

    I have checked "Provision certificates from the certificates.h file" and clicked the configure button

    but in main.c the define at line 28 has not been set so the certificates .h file is not included.

     What do you mean by that. Did it not change color?

    Did you build the project again after applying the settings?

    Or did you empty the build directory?

    If you place a #error inside the #ifdef, does it still compile?

    Best regards,

    Didrik

  • certificates.h file is It is still grayed out

    I did a rebuild (which should do a clean and build) still no change

    However, when I put random text inside the ifdef then I get a compile error. 

    So it is just a type of display problem and not actually leaving out the certificates.h

  • The issue has been reported internally, and we'll bring this up with Segger.

    As you say, the problem is only with Embedded Studio not detecting the configuration. Your application will work as expected.

    Best regards,

    Didrik

  • Actually this is still an issue and now it is of much higher priority.

    It seems as though my board is using the certificates that I had to set using the AT Client software and my certificates that had been converted to JSON format a few months ago. Follow this thread and you will see where Martin had sent me a file containing my certificates converted to JSON format

    https://devzone.nordicsemi.com/support/233736

    I believe that I have the latest Modem firmware in my board.

    When I try to use new certificates from AWS in certificates.h I get a -45 error when I try to connect to AWS. So it seems that the default certificates are not getting overwritten at run time. 

Reply
  • Actually this is still an issue and now it is of much higher priority.

    It seems as though my board is using the certificates that I had to set using the AT Client software and my certificates that had been converted to JSON format a few months ago. Follow this thread and you will see where Martin had sent me a file containing my certificates converted to JSON format

    https://devzone.nordicsemi.com/support/233736

    I believe that I have the latest Modem firmware in my board.

    When I try to use new certificates from AWS in certificates.h I get a -45 error when I try to connect to AWS. So it seems that the default certificates are not getting overwritten at run time. 

Children
Related