botan icon indicating copy to clipboard operation
botan copied to clipboard

Creating a CSR (CERTIFICATE REQUEST) from config file

Open MrAhmedSayedAli opened this issue 1 year ago • 0 comments

how to implement this config file

i used Botan::X509_Cert_Options but how add v3_req ,dir_sect ..ETC

[req]
prompt = no
utf8 = no
distinguished_name = my_req_dn_prompt
req_extensions = v3_req

[ v3_req ]
1.3.6.1.4.1.311.20.2 = ASN1:PRINTABLESTRING:TEST_STRING
subjectAltName=dirName:dir_sect

[ dir_sect ]
SN = 1-TST|2-TST|3-TST
UID = TEST_NUMBER
title = 1100
registeredAddress = TEST_STRING
businessCategory = TEST_STRING

[my_req_dn_prompt]
commonName = TEST_STRING
organizationalUnitName = TEST_STRING
organizationName = TEST_STRING
countryName = TEST_STRING

MrAhmedSayedAli avatar Jan 20 '24 07:01 MrAhmedSayedAli