Define ANJ_ALLOW_INSECURE_SERVER_CERTIFICATE_SKIP

Define Documentation

ANJ_ALLOW_INSECURE_SERVER_CERTIFICATE_SKIP

Allow certificate-based DTLS connections without a configured server certificate.

If this option is disabled, certificate-based security mode requires Server Public Key (/0/x/4 Resource in Security Object) to be configured. Missing server certificate is treated as a configuration error.

If this option is enabled, the MbedTLS integration layer disables server certificate verification for that connection.

This option is meaningful only if ANJ_WITH_CERTIFICATES is enabled.

Warning

Enabling this option makes certificate-based connections insecure against man-in-the-middle attacks. It should only be used in tests.