Error in Certificate Request....

Posted on 2009-05-14
Last Modified: 2012-05-07
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...

Question by:Phani_Vasabattula
  • 3
  • 3
LVL 31

Expert Comment

ID: 24389908
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


Author Comment

ID: 24454992
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.

LVL 31

Expert Comment

ID: 24455217
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:
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

LVL 31

Accepted Solution

Paranormastic earned 500 total points
ID: 24455247
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.

Author Comment

ID: 24455399
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.......


Author Closing Comment

ID: 31581680
Hurray!! Self-signed certificates worked for me. Thanks a lot!! I wish to give 10,000 points.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
Healthcare providers, insurance companies and other covered entities trust eFax Corporate to transmit their most sensitive documents. eFax Corporate can help your organization implement a HIPAA compliant cloud faxing solution.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A simple description of email encryption using a secure portal service. This is one of the choices offered by The Email Laundry for email encryption. The other choices are pdf encryption which creates an encrypted pdf of your email and any attachmen…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now