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 / December 2006

Tip: Looking for answers? Try searching our database.

Registering certificates for WSE3 on Vista

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil Lee - 11 Dec 2006 12:05 GMT
I currently have a batch file adapted from the WSE3 samples to register a
test certificate, like this:

set CERTNAME=MyCertificateName

certmgr -del -r CurrentUser -s AddressBook -c -n %CERTNAME%
certmgr -del -r LocalMachine -s My -c -n %CERTNAME%

certmgr -add -all -c public.cer -r CurrentUser -s AddressBook

set WP_ACCOUNT=NETWORK SERVICE
(ver | findstr "5.1") && set WP_ACCOUNT=%COMPUTERNAME%\ASPNET

winhttpcertcfg -i private.pfx -p vantage -c LOCAL_MACHINE\My -a
"%WP_ACCOUNT%"

Does anyone know how this should be modified to get it to work on Vista - in
particular Vista 64?

Thanks,
Phil Lee
Steven Cheng[MSFT] - 12 Dec 2006 06:55 GMT
Hello Phil,

As for the WSE 3.0 test certificate installing batch file, it just calls
the markcert.exe to create the test certificate and then use certmgr.exe to
add the certificates into machine and user store. I've tried running the
WSE 3.0's cert setup.bat file on VISTA(32BIT) and it worked correctly. Did
you get any particular error when running these commands?

Generally, if the .net framework 2.0 is installed correctly, you can run
the cert setup command under the .NET framework's command prompt.

Please feel free to let me know if you meet any further issues.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.
Phil Lee - 12 Dec 2006 15:05 GMT
Steven,

thanks for the reply.

All I needed to do was run my batch file from an a command prompt running as
administrator.

Regards,
Phil Lee

> Hello Phil,
>
[quoted text clipped - 18 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
Steven Cheng[MSFT] - 13 Dec 2006 07:58 GMT
Hi Phil,

Yes, in vista, by default the UAC will prevent a user directly perform
adminstrative operations. You need to elevate the security context when
performing many privilege opeations such as install certificates, register
COM object,....

Anyway, glad that you've figured it out.

Have a good day!

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

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.