wolfssl
wolfssl copied to clipboard
SM Cipher: sample certificate files need a header file for embedded apps.
Version
latest master
Description
The new SM Ciphers have their own sample certificate files in certs/sm2
.
Currently the other sample certificate files get generated into a rather large wolfssl/certs_test.h using gencertbuf.pl.
It would be helpful to embedded developers to have a pre-generated header file with the SM Cipher certificates.
I've generated a wolfssl/certs_test_sm.h SM Cipher file that could be included in the wollssl directory.
Conversion is with the dertoc.pl script.
I have a new gencert_sm.sh that needs to be a polished a bit before a PR, but is basically operational.
In the meantime, I have TLS SM cipher client and server example updates in development for the ESP32. See the example user_settings.h
for enabling the SM Ciphers:
/* optional SM4 Ciphers. See https://github.com/wolfSSL/wolfsm */
#define WOLFSSL_SM2
#define WOLFSSL_SM3
#define WOLFSSL_SM4
I'll be creating a PR soon, so this issue is just for reference that I have it currently in the works.