Solved

Error in Certificate Request....

Posted on 2009-05-14
6
6,265 Views
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:

[NewRequest]
Subject ="CN=crm2007.vj.com"
Exportable = TRUE
KeySpec = 1
MachineKeySet = TRUE
[EnhancedKeyUsageExtension]
OID = 1.3.6.1.5.5.7.3.1

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........

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
Disposition:
(never set)
Disposition message:
(none)
Result:
The parameter is incorrect. 0x80070057 (WIN32: 87)
COM Error Info:
CCertRequest::Submit The parameter is incorrect. 0x80070057 (WIN32: 87)
LastStatus:
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...

Regards,
Phani.
0
Comment
Question by:Phani_Vasabattula
  • 3
  • 3
6 Comments
 
LVL 31

Expert Comment

by:Paranormastic
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):
[RequestAttributes]
 CertificateTemplate = WebServer

Here is a link that explains everything if you need it:
http://technet.microsoft.com/en-us/library/bb663762.aspx

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.
[Version]

 Signature="$Windows NT$"

[NewRequest] 

 Subject ="CN=crm2007.vj.com"

 Exportable = TRUE

 KeySpec = 1	; Valid for signing and encryption - standard for TLS / SSL

 KeyLength = 2048

 MachineKeySet = TRUE	; Stores in local computer store

 UseExistingKeySet = FALSE

 SMIME = 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

[EnhancedKeyUsageExtension] 

 OID = 1.3.6.1.5.5.7.3.1	; OID for Server Authentication

Open in new window

0
 

Author Comment

by:Phani_Vasabattula
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 = "CN=crm2007.vj.com", O=TRAINING....

where crm2007.vj.com 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 chphaniv@gmail.com

Request your inputs, and Thanks for your time.

Regards,
Phani.
0
 
LVL 31

Expert Comment

by:Paranormastic
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:
http://msdn.microsoft.com/en-us/library/bfsktky3(VS.80).aspx

Download SDK here if you don't already have it:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc

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:
http://support.microsoft.com/kb/896861
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 31

Accepted Solution

by:
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.
http://blog.taragana.com/index.php/archive/openssl-how-to-create-self-signed-certificate/
0
 

Author Comment

by:Phani_Vasabattula
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 vj.com
Workgroup name WORKGROUP

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

Thanks once again.......

Regards,
Phani.
0
 

Author Closing Comment

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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

22 Experts available now in Live!

Get 1:1 Help Now