Click to See Complete Forum and Search --> : SSL client
COMDeveloper1
August 10th, 2008, 09:13 PM
Hi guys,
I have taken quite some time to look for a sample Web Services client which uses SSL to communicate.
My confusions are how to handle logics at client side dealing with certificate and CA certificate, and how to make such certificate and a CA certificate to make a test? Does anyone have any samples to recommend?
thanks!
MMH
August 11th, 2008, 04:48 AM
Hi guys,
I have taken quite some time to look for a sample Web Services client which uses SSL to communicate.
My confusions are how to handle logics at client side dealing with certificate and CA certificate, and how to make such certificate and a CA certificate to make a test? Does anyone have any samples to recommend?
thanks!
You require Self SSL tool to generate a certificate and test your application.
Download "IIS Resources" from the below link
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/993a8a36-5761-448f-889e-9ae58d072c09.mspx?mfr=true
Run Self SSL and type the following command in the console.
selfssl.exe /N:CN=<your machine name> /K:1024 /V:7 /S:1 /P:443
COMDeveloper1
August 11th, 2008, 06:41 AM
You resolved half of my confusion, another unresolved one is sample code to write an SSL client to access Web Services. I am surprised it is so hard to find one.
My initialitive is to parse domain information of certificate from server, and if some specific domain name, accept server certificate and proceed, or else, do not proceed.
Do you know where or where to find such a sample?
You require Self SSL tool to generate a certificate and test your application.
Download "IIS Resources" from the below link
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/993a8a36-5761-448f-889e-9ae58d072c09.mspx?mfr=true
Run Self SSL and type the following command in the console.
selfssl.exe /N:CN=<your machine name> /K:1024 /V:7 /S:1 /P:443
COMDeveloper1
August 11th, 2008, 08:20 AM
Hi MMH, I downloaded the toolkit but can not find any documents for selfssl.exe tool. Do you know where to find it?
You require Self SSL tool to generate a certificate and test your application.
Download "IIS Resources" from the below link
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/993a8a36-5761-448f-889e-9ae58d072c09.mspx?mfr=true
Run Self SSL and type the following command in the console.
selfssl.exe /N:CN=<your machine name> /K:1024 /V:7 /S:1 /P:443
MMH
August 11th, 2008, 08:29 AM
When you install it, you will find the CHM document help alongwith the SelfSSL.exe
IIS resources -> SelfSSL - > Self SLL Documentation
MMH
August 11th, 2008, 08:31 AM
And just for my info, which webservice is it you are trying to consume? Is it WCF web service ?
COMDeveloper1
August 11th, 2008, 08:38 AM
Thanks, but when I opened the file iisTools.chm, and select SelfSSL, and it just contains overview and syntax section, no install or samples? -- beyond yours. :-)
Yes, I want to host WCF as Windows Services and remote access by Web Services (the reason why I want to use WCF is because it is convenient to write and save time, and the reason why I write Web Services client other than WCF client is because some client are not using Windows OS and some clients do not have .Net CLR 3.0 installed.)
And just for my info, which webservice is it you are trying to consume? Is it WCF web service ?
MMH
August 11th, 2008, 08:47 AM
Yes, I want to host WCF as Windows Services and remote access by Web Services (the reason why I want to use WCF is because it is convenient to write and save time, and the reason why I write Web Services client other than WCF client is because some client are not using Windows OS and some clients do not have .Net CLR 3.0 installed.)
Creating WCF Web service is ok but consuming it from other client is some more painfull, meaning-
As you said, some machine doesnt have 3.0, then only option left for you is to expose your WCF service endpoint as asmx so that your client not having 3.0 can also consume it...
Also, there is a wonderful tool available on the net to test web services (SOAP UI). SOAP UI is a java client and you can very well configure it to suit your needs...
Hope this helps..
COMDeveloper1
August 11th, 2008, 08:59 AM
Thanks MMH. Good advice, not almost forget all about Java...
Anyway, do you have any SSL client samples, my confusion is how to write the callbacks dealing with server certificate acceptance...
Creating WCF Web service is ok but consuming it from other client is some more painfull, meaning-
As you said, some machine doesnt have 3.0, then only option left for you is to expose your WCF service endpoint as asmx so that your client not having 3.0 can also consume it...
Also, there is a wonderful tool available on the net to test web services (SOAP UI). SOAP UI is a java client and you can very well configure it to suit your needs...
Hope this helps..
MMH
August 11th, 2008, 09:09 AM
do you have any SSL client samples, my confusion is how to write the callbacks dealing with server certificate acceptance...
Sorry, no samples for that.....
but may be this can help you out...
http://developers.de/media/p/893.aspx
Regards,
MMH
COMDeveloper1
August 12th, 2008, 06:36 AM
Good stuff, thanks MMH!
Sorry, no samples for that.....
but may be this can help you out...
http://developers.de/media/p/893.aspx
Regards,
MMH
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.