News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
needs some self signed cert help  
by tony
posted on 2004/08/15

Hi,
I used makecert.exe to creat a self signed cert like this:
C:\Program Files\Microsoft.NET\SDK\v1.1\Bin>makecert -r -n "CN=amsoftware" -sv c
:\mycert.pvk c:\mycert.cer

I then ran the sample web server and I get this error:
How do you want to load the certificate?
1 = from certificate store
2 = from PFX/P12 file
3 = from .cer file
3
Enter the full path of the certificate file:
c:\mycert.cer
The certificate file does not contain a server authentication certificate.
An error occurred while opening the certificate.

Press enter to exit...

I must be creating the self signed cert wrong, but there is no docs on how to do this.

Thanks

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/08/17

Not all certificates can be used for all purposes. A certificate has a list of usages that it allows and by default 'Server Authentication' is not one of them.

Try specifying the -eku parameter with the OID 1.3.6.1.5.5.7.3.1 when you call makecert.

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.