I’ve added an “X509v3 Certificate Policies” field to a certificate, with this function mbedtls_x509write_crt_set_extension() and these arguments: OID = “\x55\x1D\x20” (MBEDTLS_OID_CERTIFICATE_POLICIES i.e. OID of policy) value = < policy in DER encoding >
when I created the certificate I got this field “X509v3 Certificate Policies” but the value was not in the right format. I got it as OBJECT instead of: SEQUENCE SEQUENCE OBJECT (sequence of sequence of values).
like it should be in x509 specification. I would like to know how to get the value to be in the right format.
thanks
used mbedtls_x509write_crt_set_extension() with these arguments OID = “\x55\x1D\x20” (MBEDTLS_OID_CERTIFICATE_POLICIES i.e. OID of policy) value = < policy in DER encoding >
expected to get the value in sequence of sequence representation but got it as OBJECT