Missing .inc file in https example?

Hello!

I'm looking at the http_client example, especially the ca_certificate.h file. In the project the https-cert.der file is included but the header references a https-cert.der.inc file.

So I get the error

fatal error: https-cert.der.inc: No such file or directory
   14 | #include "https-cert.der.inc"

Do I have to do anything with the included .der file?

Parents Reply
  • Are we talking about the HTTPS sample?

    Not exactly, I see the page you reference use 2.5.99 so I'm a bit behind.

    I'm working off the http_client sample in nrf-sdk v2.5.0. I can't find a source link on the page that you linked. Further more the page you linked links to another page describing the use of certificates, and it states "it must be in PEM format". But the sample I have has the certificate as a DER file, I was expecting PEM.

    Which version of the SDK do you use?

    2.5.0

    Which build configuration do you use?

    thingy_nrf9160_ns

    Which file is the error from?

    As earlier mentioned, after setting up a build profile it builds just fine. But I still wonder where the .der.inc files comes from, guessing the build. And if the documentation states it must be PEM why is DER working?

Children
Related