Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / August 2007

Tip: Looking for answers? Try searching our database.

Makecert certificate generation headache

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tsa@scandpowerit.no - 23 Aug 2007 08:49 GMT
Hi, all!

I'm currently working on a .NET development project in which I'm
trying to figure out how to utilize makecert.exe, in order to issue a
pair of X.509 certificates for testing out the authentication scheme
of the solution. So far, however, I've not succeeded in providing the
makecert utility with a proper set of parameters, as makecert seems
to
work in mysterious ways and responds with a "Too many parameters"
error message no matter how hard I try to come up with an acceptable
set of parameter values. In the following I've provided an example of
my latest command line struggle to get makecert generate the
certificates I need:

In order to generate self-signed root certificate:

makecert -sv c:\SignRoot.pvk -cy authority -r c:\signroot.cer -a sha1
-
n "CN=Another Test Certification Authority"

This command just fine. However, when I try to generate a server
certificate for my IIS, utilizing makecert and the "root" certicate
generated by the listed above works in the following way,

makecert -iv c:\SignRoot.pvk -ic c:\signroot.cer -cy end -pe -n
"CN=Another Test Server Cert" -eku 1.3.6.1.5.5.7.3.1 -a sha1 -ss My -
sr currentuser -sky exchange

I run into yet another extremely annoying "Too many parameters" error
message. Are some of the options I'm using mutually exclusive or
what?
Any help on this issue would be highly appreciated.

Regards, Trond
Valery Pryamikov - 24 Aug 2007 13:11 GMT
On Aug 23, 9:49 am, t...@scandpowerit.no wrote:
> Hi, all!
>
[quoted text clipped - 30 lines]
>
> Regards, Trond

Just install Standalone Certificate Server and use it to generate your
test certificates - it will make your life so much easier ;)

-Valery
Dominick Baier - 26 Aug 2007 11:19 GMT
+1
-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

> On Aug 23, 9:49 am, t...@scandpowerit.no wrote:
>
[quoted text clipped - 34 lines]
>
> -Valery

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.