473,320 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

DIGITAL CERTIFICATE OTHER USERS HAVE NO ACCESS

I have a winform app that is consuming WebService via SSL connection.

We installed the digital certificate for that and the winform app is
loading that cert at run time.

Code in VB.net looks like this:

Dim consumeWebService As New MyWSProxyClass
Dim cert As
System.Security.Cryptography.X509Certificates.X509 Certificate

Try

With consumeWebService

..ClientCertificates.Add(cert.CreateFromCertFile(" c:\eldcert.cer"))
.Credentials =
System.Net.CredentialCache.DefaultCredentials
.Discover()
End With

Problem is that it only runs under the user that installed the
certificate. If any other user logs into the same machine and tries to
run this app it fails. It has problems with accessing the certificates.
Can anyone help me out to solve this problem?
Is it possible to grant access to the certificate for other users and
not only to administrative users?

I tried to use MS certificate configuration tool but it didn't work for
me.

I used this command to try to give access for other accounts to the
certificate:

WinHttpCertCfg.exe -g -c CURRENT_USER\MY -s <cert-a
<DOMAIN>\<USER_NAME>

It says that permissions are granted but the app does not work still.

Thank you,
igor

Jul 7 '06 #1
1 1612
The WSE3 SDK (Webservices enhancements Kit) comes with a certificates tool
for setting certificate permissions. If you don't want to install the SDK
you could do a search for the certificate file based on its thumbprint on
your local machine and give that file permissions.

"UnkleVo" wrote:
I have a winform app that is consuming WebService via SSL connection.

We installed the digital certificate for that and the winform app is
loading that cert at run time.

Code in VB.net looks like this:

Dim consumeWebService As New MyWSProxyClass
Dim cert As
System.Security.Cryptography.X509Certificates.X509 Certificate

Try

With consumeWebService

..ClientCertificates.Add(cert.CreateFromCertFile(" c:\eldcert.cer"))
.Credentials =
System.Net.CredentialCache.DefaultCredentials
.Discover()
End With

Problem is that it only runs under the user that installed the
certificate. If any other user logs into the same machine and tries to
run this app it fails. It has problems with accessing the certificates.
Can anyone help me out to solve this problem?
Is it possible to grant access to the certificate for other users and
not only to administrative users?

I tried to use MS certificate configuration tool but it didn't work for
me.

I used this command to try to give access for other accounts to the
certificate:

WinHttpCertCfg.exe -g -c CURRENT_USER\MY -s <cert-a
<DOMAIN>\<USER_NAME>

It says that permissions are granted but the app does not work still.

Thank you,
igor

Jul 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Guangxi Wu | last post by:
Hi all, Happy New Year. I am using SignedXML and an X509 certificate to digitally sign a SOAP message body and put the signature in the SOAP header for a B2B business application. Can you...
1
by: Randy Harris | last post by:
How does one obtain a Digital Certificate? Apparently in A2K3, the user will always see a security warning (unless Security is set to Low) unless the code contains a Digital Signature. (Got all...
2
by: Martin Høst Normark | last post by:
Hi everyone Has anyone got the least experience in integrating the Digital Signature with an ASP.NET Web Application? Here in Denmark, as I supose in many other countries, they're promoting...
6
by: Matt Frame | last post by:
I have a client that has asked us to get a digital signature certificate and start digitally signing all files we pass between each other. I have heard of the subject and know about the certs but...
1
by: Eddie J | last post by:
I have a web service (#1) that contacts another web service (#2) that requires a digital certificate for access. When#1 calls #2, I'm getting a HTTP 403 error: Access Forbidden. There are a few...
1
by: =?Utf-8?B?RWRkaWUgTGFzY3U=?= | last post by:
Not sure this is the right place to ask my question, please bear with me. After reading the question, if you think there should be a different place let me know. I need to automate a daily...
0
by: shwetamodi | last post by:
Hello everyone, I am working on an ASP.Net Project and i have used digital signature in my project and it is working perfectly fine in my system but when i run it on IIS server then my...
5
by: troy_lee | last post by:
We have an application developed by one developer. He compiled the database into an application and digitally signed the application. He doesn't know if he used selfcert of makecert to make the...
1
by: bahamas | last post by:
We have a requirement where we need to enforce digital certificates on client machines. In abstract, the requirement is to have digital certificates installed in a limited set of machines in the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.