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

Share

Re: command wc_SetCustomExtension

Please confirm which build options you are using and that you're on our latest release (5.5.0) or master.

Try adding the options from this configure line and let me know if it helps: ./configure --enable-certgen --enable-asn=template CFLAGS="-DWOLFSSL_CUSTOM_OID -DHAVE_OID_ENCODING"

Share

Re: command wc_SetCustomExtension

Yes, i'm using this flags.

Share