[IronPython] SslStream exception

Garabatus Raptus garabatus at gmail.com
Wed Aug 1 19:19:45 CEST 2007


Hi there,

I'm new to IronPython and I would like to know how can I catch an
exception generated by SslStream, Example:

client = TcpClient(self.server, self.port)

sslStream = SslStream( client.GetStream(), False,
RemoteCertificateValidationCallback (self.ValidateServerCertificate),
None)

try:
   sslStream.AuthenticateAsClient("secure.mydomain....")
except <HERE?> :

   ....  <HERE?> ...
   return

Is there any link where I can read about it and found some examples?

regards,

gara



More information about the Ironpython-users mailing list