Re: Creating a CSR using OpenSSL v1.1.1

2021-10-12 Thread David von Oheimb
On 13.10.21 01:32, Philip Prindeville wrote: Is there demo code for creating a CSR? demos/x509/mkreq.c seems to have gone away a while ago... Thanks! What I generally take as demo/sample code is the OpenSSL apps implementation in apps/ , though that can be rather complicated due to many option

Re: Creating a CSR using OpenSSL v1.1.1

2021-10-12 Thread David von Oheimb
On 13.10.21 01:32, Philip Prindeville wrote: Is there demo code for creating a CSR? demos/x509/mkreq.c seems to have gone away a while ago... Thanks! What I generally take as demo/sample code is the OpenSSL apps implementation in apps/ , though that can be rather complicated due to many option

Re: Creating a CSR using OpenSSL v1.1.1

2021-10-12 Thread Philip Prindeville
> On Apr 29, 2021, at 8:15 AM, Matt Caswell wrote: > > > On 29/04/2021 15:04, Joe Eremita wrote: >> datasig_len = i2d_X509_REQ_INFO( req->req_info, NULL ); > > You can achieve this by instead doing: > > datasig_len = i2d_re_X509_REQ_tbs(req, NULL); > > See: > > https://www.openssl.org/doc

Re: Creating a CSR using OpenSSL v1.1.1

2021-04-29 Thread Joe Eremita
Hi Matt, Thanks so much for your response. Now I see what the 'tbs' acronym is for! 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 signa

Re: Creating a CSR using OpenSSL v1.1.1

2021-04-29 Thread Matt Caswell
On 29/04/2021 15:04, Joe Eremita wrote: datasig_len = i2d_X509_REQ_INFO( req->req_info, NULL ); You can achieve this by instead doing: datasig_len = i2d_re_X509_REQ_tbs(req, NULL); See: https://www.openssl.org/docs/man1.1.1/man3/i2d_re_X509_REQ_tbs.html Matt