Creating a CSR using OpenSSL v1.1.1

David von Oheimb dev at ddvo.net
Wed Oct 13 05:44:10 UTC 2021


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 options, which also 
holds for apps/req.c .
You can follow there the code sections starting with the call to 
X509_REQ_new_ex().

Sometimes interesting code snippets may be found also in test/ , but not 
for CSR generation.

     David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20211013/f4a4c3d4/attachment.html>


More information about the openssl-users mailing list