We have a corporate AD CS Certification Authority that we use to sign certificate requests for Code Signing certificates.
I am using certreq.exe -new -q -config "<servername>\<ca-name>" request.inf request.csr command to generate the .csr that I later submit to the CA.
Finally, I retrieve the certificate using certreq.exe -submit -q -config "<servername>\<ca-name>" -attrib "CertificateTemplate:CodeSigning2" request.csr response.cer cert.p7b response.ful command.
What happens is that the certificate's Issued To property is set to myself (Name + Surname), which I do not want, and which supposedly was inherited from my user being logged on to the CA web console for signing.
I would like it to show our Company Name, but I haven't found any way to explicitly specify it.
The reason behind this is that, apparently, when installing a ClickOnce-deployed application, users get a prompt displaying the Issued To name of the certificate, not it's Subject or Friendly Name.