Error in Certificate Request....

Hi Experts,

I am facing problem in creating an certificate. I have created a certificate request in the notepad as below:

Subject =""
Exportable = TRUE
KeySpec = 1
MachineKeySet = TRUE

saved this file as bcmcert.inf. Now I ran the command in the command prompt....
certreq -new bcmcert.inf bcmcert.req.
This command has created bcmcert.req without any issues. Now I stared local Microsoft Certificate Services, and clicked on "Request a Certificate" -> "advanced certificate request" -> "submit a certificate request by using a base 64-encoded CMC...", copied the content of bcmcert.req into the text box, and clicked on submit. I got the below error........


Your request failed. An error occurred while the server was processing your request.

Contact your administrator for further assistance.


Request Mode:
newreq - New Request
(never set)
Disposition message:
The parameter is incorrect. 0x80070057 (WIN32: 87)
COM Error Info:
CCertRequest::Submit The parameter is incorrect. 0x80070057 (WIN32: 87)
The parameter is incorrect. 0x80070057 (WIN32: 87)
Suggested Cause:
No suggestions.
Could anyone please suggest, where i have gone error? Your help will be highly appreciated...

Who is Participating?
ParanormasticConnect With a Mentor Cryptographic EngineerCommented:
Alternatively, you can use IIS to create a cert and export it, or you can download open source program (a good one) called openssl - make sure to get the windows version.

here's an article on using openssl to create a certificate request - this can be done on a workstation/laptop or server.
ParanormasticCryptographic EngineerCommented:
Try the code below for your .inf file.  If you use templates, you can add the following at the end (replace WebServer with correct template name - not template friendly name - no spaces):
 CertificateTemplate = WebServer

Here is a link that explains everything if you need it:

My example also increases your key strength from 1024 to 2048, which you should be doing these days anyways.

I assume that "certreq -new bcmcert.inf bcmcert.req. " did not have a period at the end as in the example?

Also, you might try using pkiview.msc (PKI Health Tool - available in 2003 resource kit, comes standard in 2008 renamed as Enterprise PKI).  This will allow you to diagnose a number of PKI related issues quickly.
 Signature="$Windows NT$"
 Subject =""
 Exportable = TRUE
 KeySpec = 1	; Valid for signing and encryption - standard for TLS / SSL
 KeyLength = 2048
 MachineKeySet = TRUE	; Stores in local computer store
 UseExistingKeySet = FALSE
 PrivateKeyArchive = FALSE
 UserProtected = FALSE	; Must be set to false
 ProviderName = "Microsoft RSA SChannel Cryptographic Provider"
 ProviderType = 12
 RequestType = CMC	; Try changing this to PKCS10 instead of CMC if still having problems
 OID =	; OID for Server Authentication

Open in new window

Phani_VasabattulaAuthor Commented:
Thanks for the reply. I have followed the same steps, and it is nto working. This is due different scenario I had. Let me explain you the situation.

I have installed an SAP application on my personal laptop. This application is running at 192.xx.xx.1. This application has also installed a web site on IIS 6.0 with virtual address 192.XX.XX.2 on the same laptop. Now I am calling website from IE with address http://192.XX.XX.2/default.htm. Here the IE has to start application with an SSL certificate. I created the SSL certificate serveral ways and failed. Finally, what I understood is that I am creating an SSL creating with the subject as

Subject = "", O=TRAINING....

where is my computer name, and Workgroup name is WORKGROUP.

From documentation, I understood that CN should be the DNS or NetBIOS name. Where my system is standalone system with workgroup defined as WORKGROUP.

Have I specified the correct value to CN parameter? If not, what is the value that I should specify? Can I create SSL certificate for a workstation? If yes, how? I need help on this very badly, and I can call you and share my desktop if required. my personal mail id is

Request your inputs, and Thanks for your time.

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

ParanormasticCryptographic EngineerCommented:
The CN can be netbios name, DNS name, IP address, or canonical name.  DNS is most common.  However, it must match what you are calling.

Since you are calling it as 192.x.x.2 that is what you need for the CN.  You can get a SAN cert from many commercial CAs or from your own CA (need to enable SAN on your own CA first) - some commercial CA's don't like to issue to internal IP addresses though.  I think Comodo will, but I'm not positive offhand, godaddy I've heard does not.

Also, make sure you are calling it as https:// instead of http:// since it is an SSL page.

It is generally best to use a CA signed certificate, however you can also use a self-signed cert - makecert.exe you can download from microsoft as part of the Platform SDK.  Command reference is here:

Download SDK here if you don't already have it:

example command:
makecert -n "CN=192.x.x.1" -pe -sr localmachine -ss CA -a sha1 -r CertName.cer

Since you are accessing this on the local box, you may need to look into this - not sure if it applies since it is a different IP address at least:
Phani_VasabattulaAuthor Commented:
Thanks for your quick reply. I will try this and get back to you. Assuming that I have not provided the system details.....

OS Windows 2003 Service Pack 1
W3SVC IIS6 - World Wide Web Publishing service is running
Host name crm2007
Dns suffix
Workgroup name WORKGROUP

Kindly direct, if you have any more suggestions for me.

Thanks once again.......

Phani_VasabattulaAuthor Commented:
Hurray!! Self-signed certificates worked for me. Thanks a lot!! I wish to give 10,000 points.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.