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 / ASP.NET / Web Services / October 2005

Tip: Looking for answers? Try searching our database.

Need help on x509 certificate installation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jcvoon - 19 Oct 2005 08:07 GMT
Hi:

I've create the following certificate using makecert.exe version
5.131.2157.1 (Come with .Net SDK v.1.1)

makecert -cy authority -r -n "CN=Test Authority" -sr localmachine -ss
"Trust"
makecert -cy end -n "CN=Test Server" -sky exchange -sk "TestServer" -ss
"My" -sr localmachine -in "Test Authority" -ir localmachine -is "Trust"

And the certificate has been install into LocalComputer\Enterprise
Trust and LocalComputer\Personal store respectively.

I've export the "Test Server" certificate from LocalComputer\Personal
store and import it into CurrentUser\Other People store

I configure both my webservice and client application WSE 2.0 policy
file by:

1. Enable signature and encryption on both request and response message
2. Select user name token as client authentication token
3. Choose the X509 certificate from local machine-personal store (or
current user-other people store for client application)

When the WinForm client try to access the web service it raise the
SoapHeaderException: "Server unavailable, please try later -->
System.InvalidOperationException: Private Key is not available"

May be this is because the APS.Net account has no permission to access
the private key, so I use the WSE x.509 Certificate tool,
choose the "Test Server" certificate from Local Computer/Personal store
click the "View private key file properties".

My questions:

1. Why the properties dialog only show general tab, i don't know where
to grant the permission to ASP.net account
  (I already uncheck the "Use simple file sharing" in Window explorer
tools|FolderOptions)

2. Why the privatekey location is at "C:\Documents and Settings\My
login name" instead of "C:\Documents and Settings\All Users" ?

Both the Winform client and webservice is running on same WinXP Pro
machine and the disk is format as FAT32.

Please Help

Thanks
JCVoon
jcvoon - 20 Oct 2005 03:09 GMT
Answer my own question:

1. Since my disk is format as FAT32 so there is no security tab appear
in the certificate file properties dialog
2. Must use latest version of makecert.exe (at least 5.131.3617.0)
otherwise the private key will be stored in "C:\Documents and
Settings\<username>" instead of "C:\Documents and Settings\All Users"
(When the private key is not stored in "All Users" folder the ASP.Net
account will not be able to retrieve the private key)

for detail info. refer to the article
http://www.eggheadcafe.com/articles/20021231.asp

JCVoon

Rate this thread:







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.