Home All Groups Group Topic Archive Search About

SslStream and AES 128 cipher

Author
1 May 2009 6:58 PM
pade
I am having problems connecting to a specific SSL server. The server only
supports AES 128, but the .NET 2.0 SslStream class doesn't seem to support it
(although the CipherAlgorithmType enum has the values Aes128).

When analyzing the client hello sent to the server, the SslStream client
only presents the following ciphers:
TLS_RSA_WITH_RC4_128_MD5
TLS_RSA_WITH_RC4_128_SHA
TLS_RSA_WITH_3DES_EDE_CBC_SHA
TLS_RSA_WITH_DES_CBC_SHA
TLS_RSA_EXPORT1024_WITH_RC4_56_SHA
TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA
TLS_RSA_EXPORT_WITH_RC4_40_MD5
TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5
TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA TLS_DHE_DSS_WITH_DES_CBC_SHA
TLS_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA

No AES cipher is presented to the server.

TLS_RSA_WITH_AES_128_CBC_SHA

How can I make this work?

Thanks, Raul

Author
1 May 2009 7:11 PM
Joe Kaplan
What OS version is your SSL client machine?  SslStream uses Windows native
SSPI SSL under the hood and AES ciphers are only supported in native SSL on
very recent OS's.  I believe this should work fine on 2008 server for
example.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
Show quoteHide quote
"pade" <p***@discussions.microsoft.com> wrote in message
news:3BB4469D-F504-4821-9202-10F6C66E96A7@microsoft.com...
>I am having problems connecting to a specific SSL server. The server only
> supports AES 128, but the .NET 2.0 SslStream class doesn't seem to support
> it
> (although the CipherAlgorithmType enum has the values Aes128).
>
> When analyzing the client hello sent to the server, the SslStream client
> only presents the following ciphers:
> TLS_RSA_WITH_RC4_128_MD5
> TLS_RSA_WITH_RC4_128_SHA
> TLS_RSA_WITH_3DES_EDE_CBC_SHA
> TLS_RSA_WITH_DES_CBC_SHA
> TLS_RSA_EXPORT1024_WITH_RC4_56_SHA
> TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA
> TLS_RSA_EXPORT_WITH_RC4_40_MD5
> TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5
> TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA TLS_DHE_DSS_WITH_DES_CBC_SHA
> TLS_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA
>
> No AES cipher is presented to the server.
>
> TLS_RSA_WITH_AES_128_CBC_SHA
>
> How can I make this work?
>
> Thanks, Raul
>
Author
2 May 2009 3:13 PM
Eugene Mayevski
> How can I make this work?


As mentioned, AES is only available on newer OS versions, and you can't rely
on it's availability on any generic Windows system. This is so when you use
SSLStream class.

You can use alternative components for SSL, such as SecureBlackbox, which
supports all most recent extensions to SSL/TLS including AES, Camellia and
more. See http://www.eldos.com/sbb/net-ssl.php

--
With best regards,
Eugene Mayevski