Closed Bug 61932 Opened 25 years ago Closed 20 years ago

RFE: add kssl (RFC 2712 [kerberos cipher suites for tls]) support to NSS

Categories

(NSS :: Libraries, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: kennedyh, Assigned: simon)

References

()

Details

we should add support for kssl (RFC 2712) in NSS. the RFC can be found at the sourceforge site or from http://andrew2.andrew.cmu.edu/rfc/rfc2712.html or wherever your friendly local RFC dealer hangs out. thoughts?
Reassigned to Nelson for evaluation.
Assignee: wtc → nelsonb
Target Milestone: --- → 3.3
I'm marking this "future" until we decide how such RFEs should really be handled. I think the right resolution to this bug is to mark it resolved "WONTFIX", but I want some consensus that that is the right resolution before I do that. I'm about 99% sure that iPlanet/NSS does not want to spend the time/money to implement this. And there are licensing issues with the kerberos code in Mozilla. But if some third party wanted to contribute an implementation, I think we'd seriously consider it.
Target Milestone: 3.3 → Future
that was the whole point. this is to track the request, and to keep duplicates out of the system. what specific issues do you see with linking in the kerberos libraries? i'll volunteer as the third party if there isn't a license issue, or if such an issue can be resolved. is bugzilla for tracking mozilla issues? or iplanet issues? if this isn't the right place, i'll post my rfe elsewhere :-)
Yes, Bugzilla is used for tracking request for enhancements/features. Just set the Severity field to "enhancement", as you have done.
Maybe the bug should be assigned to Hugh. I just don't want an open bug assigned to me that I know I am not going to work on.
Hugh: Did you do any work on this? As all that would be required is dynamically linking in a Kerberos library I can't see any licence issues here. (The linking would probably need to occur based on the libraries presence at run time, so as to avoid having to recompile for systems without Kerberos support). Given the subtle differences between the MIT and Heimdal Kerberos APIs, its likely to be different to produce code that works with both in this manner. I've got some spare cycles at the moment, and I'd like to see this implemented. Unless anyone's got any complaints, should I assign this to me?
Simon: i have not yet. just switched jobs, so haven't had time to regroup on moz work yet. i agree on the library linking issue.
NSS cannot force its non-mozilla customers to use a third party kerberos library. Therefore, the integration of kerberos with NSS must be done in such a way that it does not thereafter force all NSS users to link with a kerberos library. Also, are any new PKCS#11 mechanisms required?
Firstly, I'm planning on the final implementation not requiring that Kerberos be installed, instead the Kerberos ciphersuites will only be made available if Kerberos libraries are on the local machine. In the past I've done this using dlopen(), I haven't yet checked to see if this is available in a portable form in NSPR. The disadvantage of this approach is that it still requires that the person building NSS has a header file containing the necessary function prototypes for the Kerberos structures we're using. Secondly, no further PKCS#11 mechanisms are required, although I had to export two further PKCS functions from the NSS library so that I could make use of them. (PK11_ImportSymKey and PK11_ExtractKey) I've now got an implementation which appears to work at a protocol level. This needs a dynamically linked Kerberos library (this will go away), and I've not tackled how to pass the Kerberos information back up to the calling application in a reasonable way (it currently appears to the application that neither client nor server have certficates). Unfortunately kssl appears to not be (currently) RFC2712 compliant, so I've yet to do any interoperability testing. Should I assign this bug to me?
There's one other problem with RFC 2712 that will be a problem when attempting to integrate with NSS, and that is that RFC 2712 reuses a cipher suite number that is already allocated and in use by NSS. CipherSuite number 0x001E is defined in the SSL3 spec as being a Fortezza cipher suite. SSL_FORTEZZA_KEA_WITH_RC4_128_SHA NSS implements it. PSM 1.x implements it. If I'm not mistaken, all iPlanet servers, most Netscape servers, and some Microsoft servers implement it. That number cannot mean both SSL_FORTEZZA_KEA_WITH_RC4_128_SHA and also TLS_KRB5_WITH_DES_CBC_SHA. But AFAIK there is no conflict with the other cipher suite numbers defined in RFC 2712.
Accepting this bug, as discussed. I'd spotted the conflict. There was some discussion of this on ietf-tls recently, where there was a suggestion that the single DES based 0x1e cipher suite should just not be implemented. This is the route I'm currently taking. With reference to callbacks (as discussed on IRC) I think that to expose the minimal amount of library internals to the callback, it needs to be 2712 specific. If its not, it needs to be able to decode the CKE handshake message which as far as I can see means having access to all sorts of library internals. I think that to expose the minimum, but to still keep the Kerberos processing external, the callback needs to look like: typedef SECStatus (*SSLKerberosCKE)(void *arg, PRFileDesc *fd, SECItem *ticket, SECItem *authenticator, SECItem *encryptedpms, SECItem *cleartextpms); On the client the cleartextpms is input, and the ticket, authenticator and encryptedpms are output. The reverse applies on the server. This is the simplest way to do it that I can think of. Of course, it might be possible to write more general callbacks, but there's some rejigging of the design involved in that. What are your thoughts?
Status: NEW → ASSIGNED
Lets try assigning this to me this time.
Assignee: nelsonb → sxw
Status: ASSIGNED → NEW
If you're proposing that the same callback function be used for both client and server, then perhaps there needs to be an "isServer" argument, similar to the way the certificate authentication callback does it. What purpose does the PRFileDesc * serve in that function? Isn't the void * sufficient for the function's context? If the function needs the fd pointer, it should be able to get that from the thing addressed by the void *, no? About the secitems, I'd suggest that if the called function wants to keep a copy of the data in the secitem, or if it wants to modify any such data, the called function needs to make its own copy. I'd say the secitem *'s should be const secitem *'s so the called function knows that it should not alter the caller's copies of those secitems. RFC 2712 doesn't define the EncryptedPreMasterSecret, and clearly it cannot be precisely the defintion given in RFC 2246 section 7.4.7.1, but I think it is good to assume that the PreMasterSecret is exactly as given in section 7.4.7.1, and that the Kerberos EncryptedPreMasterSecret definition can be derived from the definition in 7.4.7.1 by substituting "kerberos-encrypted" for "public-key-encrypted". Are there any ambiguities about how that kerberos encryption is done? e.g. CBC vs other modes? or IVs? Suggeestion, if you'll email me your current diffs, I can provide more concrete suggestions to you by return email.
Changed the QA contact to Bishakha.
QA Contact: sonja.mirtitsch → bishakhabanerjee
QA Contact: bishakhabanerjee → jason.m.reid
Mozilla now has a "TIMEDOUT" resolution, but b.m.o won't let anyone set it on a bug. So, I'm using WONTFIX instead.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.