I want to use TLS_RSA_WITH_RC4_128_MD5 but there is no documentation on how to specify the criteria. Does anyone know how to do this? Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] =========================================================== _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
I admit the docs could provide more details on specifics of TLSContext configuration. My hope was that it would be sufficiently easy to figure out from the instance creation methods on TLSContext. Regarding suites specifically, the context has a #suites: accessor that takes an array of TLSCipherSuite constants. So if you don't want the default setup, you can specify your own. Note that the order in the array is significant, it should be ordered from the most desired one to the least. Any specific suite can be obtained via its long standard name, e.g.
TLSCipherSuite TLS_RSA_WITH_RC4_128_MD5 There is also an attempt to provide a way to specify suites in groups based on some criteria, e.g. TLSCipherSuite suites: #(rsa (rc4) aes (rsa dh) des (rsa dh)) Which translates to "any RSA suite with RC4 or any AES suite with either RSA or DH or any DES suite with either RSA or DH". The criteria keywords come from the class side SuitesByCategory registry. This isn't even mentioned in the docs because honestly I'm not entirely sure about this facility. I'm after something reasonably simple and obvious yet with necessary expressive power (whatever that means). OpenSSL has its own syntax for this, but I find it quite cryptic. On the other hand if it was reasonably established, we could certainly support that. I'd welcome any feedback on this. Martin "Terry Raymond"<[hidden email]> wrote: > I want to use TLS_RSA_WITH_RC4_128_MD5 but there is no documentation > > on how to specify the criteria. > > > > Does anyone know how to do this? > > > > Terry > > > > =========================================================== > > Terry Raymond > > Crafted Smalltalk > > 80 Lazywood Ln. > > Tiverton, RI 02878 > > (401) 624-4517 [hidden email] > > =========================================================== > > > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
When I tried the first technique the result would not print because the name
had not been set. I gave up on trying to figure out how to make the second technique work. With a little poking around I ended up using Xtreams.TLSCipherSuite fromCode: 4. The result had the name set. Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] =========================================================== > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] > Sent: Friday, October 19, 2012 11:28 AM > To: Terry Raymond > Cc: VWNC > Subject: Re: [vwnc] [VW 7.9 TLS] How do you specify cipher suite criteria? > > I admit the docs could provide more details on specifics of TLSContext > configuration. My hope was that it would be sufficiently easy to figure out > from the instance creation methods on TLSContext. Regarding suites > specifically, the context has a #suites: accessor that takes an array of > TLSCipherSuite constants. So if you don't want the default setup, you can > specify your own. Note that the order in the array is significant, it should be > ordered from the most desired one to the least. Any specific suite can be > obtained via its long standard name, e.g. > > TLSCipherSuite TLS_RSA_WITH_RC4_128_MD5 > > There is also an attempt to provide a way to specify suites in groups based on > some criteria, e.g. > > TLSCipherSuite suites: #(rsa (rc4) aes (rsa dh) des (rsa dh)) > > Which translates to "any RSA suite with RC4 or any AES suite with either RSA > or DH or any DES suite with either RSA or DH". The criteria keywords come > from the class side SuitesByCategory registry. This isn't even mentioned in > the docs because honestly I'm not entirely sure about this facility. I'm after > something reasonably simple and obvious yet with necessary expressive > power (whatever that means). OpenSSL has its own syntax for this, but I find > it quite cryptic. On the other hand if it was reasonably established, we could > certainly support that. I'd welcome any feedback on this. > > Martin > > "Terry Raymond"<[hidden email]> wrote: > > I want to use TLS_RSA_WITH_RC4_128_MD5 but there is no > documentation > > > > on how to specify the criteria. > > > > > > > > Does anyone know how to do this? > > > > > > > > Terry > > > > > > > > > ========================================================== > = > > > > Terry Raymond > > > > Crafted Smalltalk > > > > 80 Lazywood Ln. > > > > Tiverton, RI 02878 > > > > (401) 624-4517 [hidden email] > > > > > ========================================================== > = > > > > > > > > > > _______________________________________________ > > vwnc mailing list > > [hidden email] > > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by mkobetic
Simple and expressive, that sounds like a select block: TLSContext newClientWithSuitesMatching: [ : suite | suite cipher = 'AES' and: [ suite keyExchange = 'RSA ]] The mames might need some streamlining, some are strings (e.g. cipher), others symbols (e.g. keyExchange). Some convenience accessor like #aes and #rsa could make the block shorter: TLSContext newClientWithSuitesMatching: [ : suite | suite aes and: [ suite rsa ]] |
Holger Kleinsorgen wrote: _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
By replacing blocks with unary message selectors, one could write: TLSContext newClientWithSuitesMatching: #rsa Then add boolean operators to combine criteria, e.g. TLSContext newClientWithSuitesMatching: #rsa && #rc4 TLSContext newClientWithSuitesMatching: #rsa && (#md5 || #sha256) |
Here is a qui(r/c)kish example: https://dl.dropbox.com/u/21555916/smalltalk/TLSSuiteExpressions.zip Load parcel TLSSuiteExpressions, then evaluate stuff like TLSCipherSuite suitesMatching: #sha & (#aes | #tripleDES) & #rsa TLSCipherSuite suitesMatching: #rsa & #isWeak not & #isEncrypted |
Free forum by Nabble | Edit this page |