<div dir="ltr"><div>Hi Matt,</div><div><br></div><div>        Thanks so much for your response. Now I see what the 'tbs' acronym is for!<br></div><div><br></div><div>        I do have another question: this regards setting the signature in the signature element of the request. I figured out how to make an ECDSA_SIG object using the r and s components of the ECDSA signature, however I do not see any way to for converting it to an ANSI_BIT_STRING type. Is there a method or process for performing this?</div><div><br></div><div>Thanks Again,</div><div><br></div><div>Joe<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 29, 2021 at 10:15 AM Matt Caswell <<a href="mailto:matt@openssl.org">matt@openssl.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 29/04/2021 15:04, Joe Eremita wrote:<br>
> datasig_len = i2d_X509_REQ_INFO( req->req_info, NULL );<br>
<br>
You can achieve this by instead doing:<br>
<br>
datasig_len = i2d_re_X509_REQ_tbs(req, NULL);<br>
<br>
See:<br>
<br>
<a href="https://www.openssl.org/docs/man1.1.1/man3/i2d_re_X509_REQ_tbs.html" rel="noreferrer" target="_blank">https://www.openssl.org/docs/man1.1.1/man3/i2d_re_X509_REQ_tbs.html</a><br>
<br>
Matt<br>
</blockquote></div>