Click here to Skip to main content
15,890,579 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Convert VBScript to C# Pin
originSH26-Jun-07 4:59
originSH26-Jun-07 4:59 
GeneralRe: Convert VBScript to C# Pin
Dave Kreskowiak26-Jun-07 5:09
mveDave Kreskowiak26-Jun-07 5:09 
GeneralRe: Convert VBScript to C# Pin
originSH26-Jun-07 5:35
originSH26-Jun-07 5:35 
GeneralRe: Convert VBScript to C# Pin
Dave Kreskowiak26-Jun-07 6:17
mveDave Kreskowiak26-Jun-07 6:17 
GeneralRe: Convert VBScript to C# Pin
originSH26-Jun-07 6:26
originSH26-Jun-07 6:26 
GeneralRe: Convert VBScript to C# Pin
Dave Kreskowiak26-Jun-07 6:38
mveDave Kreskowiak26-Jun-07 6:38 
GeneralRe: Convert VBScript to C# Pin
originSH26-Jun-07 21:50
originSH26-Jun-07 21:50 
QuestionAuthenticate Webservice using x509 certificate [modified] Pin
honeysip26-Jun-07 0:50
honeysip26-Jun-07 0:50 
Hi All,

I am working with webservices and its security.

I have a webservice and client application.now i need to secure the web service while calling and as well as serving the request.

I had created the x509 certificate and ........

Now i am not able to proceed further...

I will give the sample code i wrote in order to authenticate the user using the x509 certificate:

<WebMethod()> _

Public Function NewAuthentication(ByVal mvarUserID As String, ByVal mvarpassword As String, ByVal X509cert As X509Certificate) As DataSet 'UsernameForCertificateAssertion) As DataSet

Dim ds As New DataSet
Dim cert As New RLDInvData.Security()

Dim XCert As New System.Security.Cryptography.X509Certificates.X509Certificate()
' Dim file As New String

' XCert = System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile("").ToString()

Dim pol As New MyPolicy()
XCert = X509Certificate.CreateFromCertFile(pol.ToString())

If Not XCert Is Nothing Then

Dim objSec As New RLDInvData.Security()
'Dim objSec As New RLDInvData.Websecurity

ds = objSec.Logon_DS(mvarUserID, mvarpassword)

X509cert = XCert

objSec = Nothing

End If

Return ds
End Function



RLDInvData is the dll file in which i wrote the class for security which is called after calling the webservice.

Pls help me in getting the X509 certificate and pas it as a parameter and process the authentication.

Thanks in advance


-- modified at 7:53 Tuesday 26th June, 2007
QuestionDrawing on Images? Pin
ashamsa26-Jun-07 0:50
ashamsa26-Jun-07 0:50 
AnswerRe: Drawing on Images? Pin
SHatchard26-Jun-07 0:58
SHatchard26-Jun-07 0:58 
GeneralRe: Drawing on Images? Pin
ashamsa26-Jun-07 1:48
ashamsa26-Jun-07 1:48 
GeneralRe: Drawing on Images? Pin
SHatchard26-Jun-07 2:14
SHatchard26-Jun-07 2:14 
AnswerRe: Drawing on Images? Pin
Christian Graus26-Jun-07 1:01
protectorChristian Graus26-Jun-07 1:01 
GeneralRe: Drawing on Images? [modified] Pin
ashamsa26-Jun-07 1:40
ashamsa26-Jun-07 1:40 
QuestionWhat is Wrong with my Dataset or Event on the Textbox Pin
Vimalsoft(Pty) Ltd26-Jun-07 0:25
professionalVimalsoft(Pty) Ltd26-Jun-07 0:25 
QuestionActive directory Pin
Jayesh Talsaniya26-Jun-07 0:20
Jayesh Talsaniya26-Jun-07 0:20 
AnswerRe: Active directory Pin
SHatchard26-Jun-07 0:53
SHatchard26-Jun-07 0:53 
GeneralRe: Active directory Pin
Jayesh Talsaniya26-Jun-07 1:05
Jayesh Talsaniya26-Jun-07 1:05 
GeneralRe: Active directory Pin
SHatchard26-Jun-07 1:14
SHatchard26-Jun-07 1:14 
GeneralRe: Active directory Pin
Jayesh Talsaniya26-Jun-07 1:33
Jayesh Talsaniya26-Jun-07 1:33 
Questionglobal Pin
Sebastian T Xavier25-Jun-07 23:27
Sebastian T Xavier25-Jun-07 23:27 
AnswerRe: global Pin
Tamimi - Code25-Jun-07 23:45
Tamimi - Code25-Jun-07 23:45 
GeneralRe: global Pin
Christian Graus25-Jun-07 23:50
protectorChristian Graus25-Jun-07 23:50 
GeneralRe: global Pin
Tamimi - Code26-Jun-07 0:50
Tamimi - Code26-Jun-07 0:50 
GeneralRe: global Pin
Sebastian T Xavier25-Jun-07 23:53
Sebastian T Xavier25-Jun-07 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.