Remoting dataportal using ssl

Remoting dataportal using ssl

Old forum URL: forums.lhotka.net/forums/t/6132.aspx


fjlycsy posted on Monday, January 12, 2009

Hi Brett,

The remoting server can be as secure as you can make any website if its hosted in IIS.  For example you could run the dataportal using remoting and then set your IIS to use SSL, which means all data will be encrypted.

Whether I don't need to change anything in your code just enable SSL ,If   it must be changed,could you tell me how to do?

Hope this helps

RockfordLhotka replied on Tuesday, January 13, 2009

You are asking how to use SSL with Remoting? As far as I know, you just use an https:// address instead of http:// and it will use SSL.

fjlycsy replied on Tuesday, January 13, 2009

Thank you for your reply,
my application useing of csla.net framework and  remoting channel.
In order to prevent the anonymous call, my IIS server requires the client to submit a digital certificate, and now I would like to know how my digital certificates and server interaction, I also tried some code, but the server always return 403 errors, 
could you tell me how to use the certificate in csla.net ?

RockfordLhotka replied on Wednesday, January 14, 2009

If you need to customize the remoting channel in any substantial way, and it sounds like you do, then you’ll need to create a custom data portal proxy class.

 

This is not too difficult. Just copy the RemotingProxy code from the CSLA project into your project, and customize the way the remoting proxy object is created so it includes your certificate.

 

Then set the CslaDataPortalProxy configuration value to use your new RemotingProxy type instead of the one from Csla.dll.

 

Rocky

 

 

From: fjlycsy [mailto:cslanet@lhotka.net]
Sent: Tuesday, January 13, 2009 9:18 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Remoting dataportal using ssl

 

Thank you for your reply,

my application useing of csla.net framework and  remoting channel.

In order to prevent the anonymous call, my IIS server requires the client to submit a digital certificate, and now I would like to know how my digital certificates and server interaction, I also tried some code, but the server always return 403 errors, 

could you tell me how to use the certificate in csla.net ?



fjlycsy replied on Wednesday, January 14, 2009

Thank you for your reply, it gave me great help!

There is also a problem, it may be very simple for you, but I have not been successful, I have access to a lot of books, but also through the MSDN, Google to understand, but little information in this regard.

 Remoting proxy object Is there a property to bind my digital certificate?

 The following are some of my code fragment, please advise whether the omission of what?

"    

IService service = (IService)RemotingServices.Connect(typeof(IService), "https://192.168.0.74/HttpBinary/SAService.rem");

X509Store  x509Store = new X509Store("MY", StoreLocation.CurrentUser);
 x509Store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
X509Certificate2Collection  x509Selected = x509Store.Certificates;

IDictionary dictionary = ChannelServices.GetChannelSinkProperties(service);
 dictionary["certificates"] = x509Selected[0];

 Console.WriteLine("The server says : " + service.GetServerString() );

"

When run" service.GetServerString()  "  it will return 403 error!

I use a digital certificate to access my web page, it is correct, so IIS settings should be correct.

RockfordLhotka replied on Thursday, January 15, 2009

I’m sorry, I don’t know how to attach a certificate to the remoting proxy…

 

Rocky

 

fjlycsy replied on Thursday, January 15, 2009

In any case, very grateful for your help!

fjlycsy replied on Sunday, February 01, 2009

Hi Rocky:


Again disturb

 use csla.net

 use iis

 use wcf

 use x.509

 how to attach a certificate to the wcf proxy?

RockfordLhotka replied on Monday, February 02, 2009

I’m sorry, I don’t know how to attach a certificate to the remoting proxy…

Copyright (c) Marimer LLC