Dear @AhmedTarekYA
The requirement is that the certificate template name field in the config CNF file differs on the simulation from the production environment.
Dear @AhmedTarekYA
The requirement is that the certificate template name field in the config CNF file differs on the simulation from the production environment.
what is the wrong here ? <?php
// 2.2.2 Profile specification of the Cryptographic Stamp identifiers. & CSR field contents / RDNs.
return <<<TEXT
[req]
prompt = no
utf8 = no
distinguished_name = my_req_dn_prompt
req_extensions = v3_req
[ v3_req ]
#basicConstraints=CA:FALSE
#keyUsage = digitalSignature, keyEncipherment
1.3.6.1.4.1.311.20.2 = ASN1:UTF8String:SET_PRODUCTION_VALUE
subjectAltName=dirName:dir_sect
[ dir_sect ]
SN = SET_EGS_SERIAL_NUMBER
UID = SET_VAT_REGISTRATION_NUMBER
title = 0100
registeredAddress = SET_BRANCH_LOCATION
businessCategory = SET_BRANCH_INDUSTRY
[my_req_dn_prompt]
commonName = SET_COMMON_NAME
organizationalUnitName = SET_BRANCH_NAME
organizationName = SET_TAXPAYER_NAME
countryName = SA
TEXT;
can you edit it to be ok with simulation ?
I don’t understand what information you provided above.
But it seems like you want to create a CSR using OpenSSL.
You need a config.cnf to create a CSR using OpenSSL. Here is an example of a config.cnf according to the csr-config.properties as suggested by Zatca.
From this CSR Config Properties
csr.common.name=MNG-886431145-399999999900003
csr.serial.number=1-MNG|2-MNG|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
csr.organization.identifier=399999999900003
csr.organization.unit.name=Riyadh Branch
csr.organization.name=Maximum Speed Tech Supply LTD
csr.country.name=SA
csr.invoice.type=1100
csr.location.address=RRRD2929
csr.industry.business.category=Supply activities
for Simulation Environment, Config.cnf Should be
oid_section = OIDs
[OIDs]
certificateTemplateName=1.3.6.1.4.1.1311.20.2
[req]
default_bits = 2048
emailAddress = email@email.com
req_extensions = v3_req
x509_extensions = v3_ca
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[dn]
CN=MNG-886431145-399999999900003
OU=Riyadh Branch
O=Maximum Speed Tech Supply LTD
C=SA
[v3_req]
basicConstraints = CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment
[req_ext]
certificateTemplateName = ASN1:PRINTABLESTRING:PREZATCA-Code-Signing
subjectAltName = dirName:alt_names
[alt_names]
SN=1-MNG|2-MNG|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
UID=399999999900003
title=1100
registeredAddress=RRRD2929
businessCategory=Supply activities