Topic: Having MATCH_SUITE_ERROR error when after changing the cipher list
In my application, my device initially use a ECC key and certificate with wolfSSL_CTX_use_certificate_file() and wolfSSL_CTX_use_PrivateKey_file(), then setting the cipher using API wolfSSL_CTX_set_cipher_list() with ECC cipher list. Later on, my devices generate a new certificate with RSA key, i repeat the step above with RSA cipher list, then Wolfssl report MATCH_SUITE_ERROR error during handshake.
If I do the another way around, initialise the device with RSA key, and switch to ECC key later on, this error will not happen.
Anyone know the cause of this and how to fix it? Or is there any limitations on this changing cipher list?
FYI, I initialize the WolfSSL with wolfSSL_Init() and wolfSSL_CTX_load_static_memory() API.