Search code examples
sslcertificatecacsrcertreq

certreq -submit commnd asks to choose one of the 2 Certificate Authorities


I am using the below ini file:

[NewRequest]
Subject = "CN=TestCN,SERIALNUMBER=TestSN,O=Test,L=Test,C=UK"
Exportable = TRUE
ExportableEncrypted = TRUE
HashAlgorithm = Sha256
KeyLength = 256
MachineKeySet = True
FriendlyName = "TestName"
[RequestAttributes]
CertificateTemplate = "ActualTemplateName"

Then I am running the below commands:

certreq -new "test.ini" "test.req"
certreq -submit "test.req" "test.cer"

Now, in the second command i.e. certreq -submit asks me to choose one of the 2 Certification Authorities. I have a requirement where there should not be any such popup, it should be provided as part of ini file or certreq -submit command. Thanks in Advance.


Solution

  • It worked for me:

    certreq -config "CAServerName\CAName" -submit "test.req" "test.cer""