Digital Certificates For Authentication And Access?
Jun 11, 2009
I'm looking for guidence on using digital certificates to manage website user authenication and access. i am using a website that has this and what happens is this... the company issued me a personal certificate, that i installed on my local machine. When i connect to the website it checks my local cert store for a cert issued by them and if none is found, no entry, if multiple are found, then a box displays to allow you to pick which one to use.
Here is my issue/question. I am relatively new to VB.Net programming, and I have been assigned the task of creating an application that will go out to a Secure web site and download a file. My first issue is it best to do this using a Windows form, ASP.Net or what. My second and main question is how do I authenticated to the secure web site in .net code?
Upon connecting to the secure web site it asks me for a certificate, which at the moment I have to manually present, however we would like to automate this. Then after it authenticates I have to go a few more pages in before i get to the file that needs to be downloaded.Although this file changes daily it has the same key tag so I can hardcode that into the download application. I just need to figure out how to programically authenticate to the site with .Net
I'm building a web service client using vb .net. The web service is secured with ssl, basic authentication and also requires client certificates. So I created a web reference in Visual Studio and provided the credentials:
Dim cred As New System.Net.NetworkCredential("usr", "passwd") Dim proxy As New SimpleFromLocal.simple proxy.Credentials = cred Console.WriteLine(proxy.helloWorld())
This works as expected, as long as I turn off mutual authentication on the server side.I added a client certificate like this:
Dim cert As X509Certificate = X509Certificate.CreateFromCertFile(certFile)proxy.ClientCertificates.Add(cert)
The certificate is loaded, but the web service call fails. I could post the exception, but it is in german, which is an issue on its own. It basically says: Authentication failed, because the remote site closed the connection.I tried debugging the ssl handshake on the server side and it looks like the client certificate is not transmitted.So what am I missing here? Is it required to install the client certificate on the local machine?Edit: The error thrown:
I am trying to login to a webpage to parse data out of it etc. but the website I want to access requires authentication. I don't know how to do this with code. I have seen other threads that kind of tell you how to do this but those had the authentication boxes inside the actually the page on the web site I want to access it is in a pop up box so I can't see the source code for it.
I'm writing a program to examine logs of various servers on our network..they're not on our domain but i can map a drive to them by authenticating each time from my LP (which is on the domain)
my question is... how do i perform that same authentication with VB..
[Code]...
i'd like to either have a pop up box to auth as i would when i browse to the remote PC... OR be able to set it statically in the code (the servers all have the same admin login + password)
I want to write a program, which if you provide username and password, will go thru the authentication of a specific website, and then jump to a specified section.
I am trying to restrict access to an intranet site via Windows authentication. I would like to control access via active directory user groups, but my added AD groups don't appear to be recognised by .net. I started with the following test code in my app to determine if the group could be used...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.Label1.Text = User.Identity.Name
[Code]...
The isuserinrole returns false and the group is not shown in getrolesforuser. However, getrolesforuser returns all of the built in windows groups as well as custom admin user groups created by our anti virus software (SOPHOS). This tells me that .net doesn't seem to have any issue with reading our active directory but I don't understand why my custom group is not being recognised.
When I try to use the add/remove metho9ds for an x509 store on the root authority (code below) I get confirmation dialogs.Is there any way to avoid those dialogs??
I am implementing a VB.NET desktop application which consumes a web service.
The web service implemented in Java and I currently using Tomcat on my localhost to host the web service.
The web service requires secure communication with the client and so I have followed instructions that outlined how to use Java's keytool.exe to create two .jks keystores (one for the client and one for the server) and then create two .cer certificates (one for the client and one for the server)
I have placed the keystores and certificates generate into the directory where the web service is expecting them (according to the instructions)
I have installed the certificates into TrustedPeople and have attempted to use the certificate by setting the ClientCredentials.ClientCertificates property like this:
I keep getting the following error message when I try to call any method:
An error was discovered processing the <wsse:Security> header
My problem is that I don't know how to use this in the VB.NET client application that is consuming the web service. I could be doing this completely wrong.
Im trying to publish a project but im getting this error.An error occurred while signing: Failed to sign binReleaseapp.publish\setup.exe. SignTool Error: No certificates were found that met all the given criteria.
I developed an application by vb.net 2005 on SQL server 2008.I would like to enter some of my data such as my drawing and my handwriting in my application by a digital pen.
How can I take pictures using a digital camera based on a button click in WinForm application? I tried googling, and got WIA. Used WIA 2.0 and wiaut.dll, and it is working fine for webcams. But I am not able to automate the actions of my Sony W220 camera. I tried googling for WPD, but it appears to be active only in Windows 7 and Vista, and I am using XP Sp2
I need some advises on showing digital signal indicator at this moment I use radio button...but it's then becoming complicated because I have to make them "true" or "false" anytime.
my final year project title is monitoring weight changes in digital scale / indicator.i bought one digital scale online from A&D in order to test out my system.however unlikely other device (GSM MODEM, RFID...) there are no drivers or libraries (DLL) from this device.. with only the digital scale and (rs232 9-pins to usb convertor i bought) i was like lost wondering how to get communicate with the device.i have been search around in the internet for similar post.. but there are most likely dealing with the data receiving already. is there any journals or manuals for references? i willing to study over this and not simply ask for full codings.
- how to communicate with the device (serial port communication)
- is there any driver / libraries need to install bfore everything?
OS using - windows 7 ultimate (laptop)model of device - A&D JM-SERIES 150lb
I want to take picture directly on my employee database form. I means, how to control digital camera from Visual Basic form? how to take picture through VB Command button.
Im an electrical engineering student, and I am trying to utilize the serial port to give me high and low digital states. What i want to do is simply turn on an LED or turn it off. the basic gist of what I have been trying currently is that on a button click, serialPort1.DTREnable = enabled or disabled, indefinitely until the next button click.
So far, I have only been able to get the LED to momentarily flash... It seems to begin in an active state flash off, then immediately, return to its active state. I am using Visual Studio 2008. Can I use DTREnable to generate on/off states by enabling or disabling the pin? Is there a tutorial somewhere for electrical engineering applications using visual studio 2008?
i have a problem with my graduation project, i need to take a picture shoot automatically based on a signal from the parallel port, and save the picture on the harddisk , so the MATLAB will read this picture to process it.
I'm looking for a library compatible with microsoft.net framework that allows the creation and verification of XAdES signatures (XAdES, XAdES-C, XAdES-XL, etc...).It is important that the library enable the programmer to choose:
1.- Type of certificate to use in the signature process (PFX file, Windows centralized store, SmartCard)
2.- CRL to validate the certificate.
3.- Possibility to include Time stamping on the signature.
4.- Possibility to include OCSP response on the signature.
All I found are libraries in Java, but have not found any libraries in .NET.
I am trying to design a digital clock using the drawing tool. i have drawn all the segments using the drawpen function and i have also created a timer that will get the current system time. i want to link the current system to the digital display i have drawn, so that when the time is 1:02 for example only that will highlight on the digital display
I wanted to generate digital signature in my asp.net application based on some value like date of birth. what is the way to do that ? i am using vb.net
How do I get my form to display a simple digital counter? I have a "record" function on my program:
Private Sub Button13_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click mciSendString("open new Type waveaudio Alias recsound", "", 0, 0) mciSendString("record recsound", "", 0, 0) End Sub
I want to have a simple digital counter display while the program is recording. That way the user can know how long the audio is so far while recording. Then when the user is done recording, the timer will stop.
Reading binary data out of the database, and I need to convert it back into a Digital Persona fingerprint template. I'm not familiar with serialization and deserialization, Here's what I tried: Dim rsBioData As SqlDataReader = SQL.ExecuteReader Dim byteTemplate As Byte Dim memStreamTemplate As MemoryStream If rsBioData.HasRows Then While rsBioData.Read [Code] .....
I receive an error that template.DeSerialize(memStreamTemplate) does not create a value.
Here's how I serialized the object to place it into the database. I assume this part is working, since the binary data shows up in SQL server--just can't read it back out to see. Dim str As New MemoryStream Enroller.Template.Serialize(str) Dim serializedTemplate As Byte() = str.ToArray() SQL.Parameters.AddWithValue("biometricData", serializedTemplate)