4 ms·
so -- would it be reasonable to create a minimal implementation of ssl focused on web browsers and web servers? How much work is it to create such a minimal im
by x0x0 13y ago
so -- would it be reasonable to create a minimal implementation of ssl focused on web browsers and web servers? How much work is it to create such a minimal implementation that is reasonably performant, written by competent devs, well tested, fuzzed, etc? Just because random shit gets thrown into the protocol that doesn't mean it needs to be implemented in my copy of chrome or nginx...
- mwcampbell 13y agoOpenSSL itself is highly configurable, so I think it would be better to pare it down to a minimal build that is both secure and compatible with all widely deployed TLS implementations.
- x0x0 13y agoime, it's much harder to write, understand, test, and debug #include soup
- midas007 13y agoNot really. There are only a handful of features that are necessary. Furthermore, JEOS-like minimal systems should only enable features that are absolutely necessary. Minimalism means a smaller attack surface.
- midas007 13y agoI do this already on OSX, and even submitted a patch to allow Ruby to run without OpenSSL engine support. [0] How I compile OpenSSL. [1] [0] https://bugs.ruby-lang.org/issues/9714 https://bugs.ruby-lang.org/issues/9714 [1] ( export CONFIGURE_OPTS='no-hw no-rdrand no-sctp no-md4 no-mdc2 no-rc4 no-fips no-engine' \ brew install https://gist.github.com/steakknife/8228264/raw/openssl.rb )
- mwcampbell 13y agoThat looks like a good start, but can we drop even more? DES? Camellia? IDEA? MD5?
- midas007 13y agoGood start my ass, you haven't actually tried any of your "suggestions," have you? no-md5 doesn't currently work: "_EVP_md5", referenced from ... no-des doesn't currently work either, the following test fails the build: enveloped content test streaming S/MIME format, 3 recipients: generation error
- antocv 13y agoJust go read polarssl docs and fuzz that. Its small modular documented and tested. We would all reach further by improving polarssl than starting another library.
- x0x0 13y agounfortunately it's licensed gpl2, so no love. which is too bad because I agree. https://github.com/polarssl/polarssl/blob/master/library/ssl_tls.c https://github.com/polarssl/polarssl/blob/master/library/ssl...
- dangayle 13y agoHmm. Why does it say Dual-Licensed in the description?
- tptacek 13y agoBecause you can also pay them for a commercial license.
- antocv 13y agoWhat is wrong with gpl v2?
- throwaway7767 13y agoIt's actually GPL-2+, but yes, this unfortunately limits the scope of outside contributors.
- jlgaddis 13y agoIt's certainly not without its problems (see, e.g. news in the last few weeks) but GnuTLS is (in my opinion, of course) technically superior to OpenSSL. Unfortunately, its license will prevent more widespread adoption.