Topic: command wc_SetCustomExtension
I'm working with creating certificates and using the wc_SetCustomExtension function to assign the values of certificate restrictions (keyUsageExtended, keyUsage) when I need to decode the generated certificate wolfssl can't get the settings that were assigned.
We are using wc_SetCustomExtension because we were able to assign some constraints as critical.
we use this command in a root certificate
int ret;
ret = wc_SetCustomExtension(&newCert, 1 , "2.5.29.37","2.23.145.1.1", 12);
out:
....
X509v3 Extended Key Usage: critical
2.23.145.1.1
....
We were able to generate the certificate with wc_SetCustomExtension but we couldn't decode it from .der