I'm trying to submit a certificate request. I'm trying to do it from command line so I can run it from code.
Previously I have done it by using the Microsoft Active Directory Certificate Services for the CA I'm using. Specifically CA Web enrollment where I copy and pastes the base 64 request in via the browser and then download the cert.
I'm trying to automate this using the template below. I have the server open (it's windows server 2012) and I can't figure out the correct paramters. I think the main thing I'm missing is the FQDN and Alias. How do I find this out?
certreq -submit
-Username {domain}\{username}
-p {password}
-PolicyServer "https://{FQDN CertificateEnrollmentPolicyWebService-Server/-Alias}/ADPolicyProvider_CEP_UsernamePassword/service.svc/CEP"
-config "https://{FQDN CertificateEnrollentWebService-Server/-Alias}/{CAName}_CES_UsernamePassword/service.svc/CES"
-attrib "CertificateTemplate:{TemplateName}"
{Enter Path and Name of the Request-File}
{Choose Path and Filename for certificate}