Hi akhi_gangwar,
You can debug the certificates being sent using the verify callback.
1. Add build option: WOLFSSL_ALWAYS_VERIFY_CB
2. Set callback function
wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_PEER, myVerify);
3. Pull in code like this to show the certificates: https://github.com/wolfSSL/wolfssl/blob … st.h#L1755
Then you can pinpoint which certificate is causing it.
Another option is to locally test the AWS connection and use Wireshark to view the peer's certificates.
Thanks,
David Garske, wolfSSL