Command Line Certificate Creation on Windows

Posted: March 2, 2012 in Uncategorized

On the client create an .inf file as follows

 
[Version]
Signature=”$Windows NT$
 
[NewRequest]
Subject=”etc”
KeySpec=1
Exportable=1
MachineKeySet=TRUE
ProviderName=”CSPName”
ProviderType=1
 
[RequestAttributes]
CertificateTemplate=<Template>
 
Process
 
certreq -new infile.inf refile.req
 
certreq -submit -config <CAComputerName>\<CAName> reqfile.req
 
(If you received a request from a difrerent source without a named template use the following certreq -submit  -attrib “CertificateTemplate:YourCertTemplate” -config “<CAComputerName>\<CAName>” reqfile.req)
 
Save the certificate, as cert.cer, and install it in your store using certreq -accept cert.cer
Advertisements
Comments
  1. […] Command Line Certificate Creation on Windows […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s