Creating a CSR using OpenSSL v1.1.1

David von Oheimb dev at
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 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-users mailing list