I'm attempting to generate a certificate request with just a common name, and it seems that gnutls_x509_crq_sign2 is giving me GNUTLS_E_ASN1_VALUE_NOT_FOUND; i'm not sure what to do about that. As far as I can see, my code is consistent with the docs and examples. Any pointers on where this is incorrect?
// This is where the error occurs if ((re = gnutls_x509_crq_sign2(req, key, GNUTLS_DIG_SHA1, 0)) != 0)
{ gnutls_x509_crq_deinit(req); gnutls_x509_privkey_deinit(key); return re; }