Message-ID: <53166223.3020704@...1147...> Date: Wed, 05 Mar 2014 00:30:43 +0100 From: Jan Just Keijser MIME-Version: 1.0 References: <5302AADC.80801@...277...> <20140218085500.GU16637@...1296...> <530340C4.5060702@...277...> <20140218115015.GW16637@...1296...> <5304AFE4.2050702@...277...> <530917A4.4050905@...1528...> <53093043.9080808@...277...> <5309B31C.50208@...1856...> <530A9219.8050809@...277...> <530BE62F.4090709@...1856...> <530E48C2.5090209@...277...> <530E5529.9080204@...1856...> <53164A63.8020209@...277...> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080308090900020005030805" Subject: Re: [Openvpn-devel] [Patch] ECDH support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steffan Karger , pietrek -- Cc: openvpn-devel This is a multi-part message in MIME format. --------------080308090900020005030805 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/03/14 23:48, Steffan Karger wrote: > Hi, > > On Tue, Mar 4, 2014 at 10:49 PM, pietrek -- > wrote: > > [...] > > I think we could add option "--dh none" or "--no-dh". It may be > specified, if user knows what he's doing. > > > I like that idea. It offers a migration path for users that really > want to skip the DH-stuff. I'd vote for "--dh '[none]'", as it does > not add a new option (openvpn has more then enough options ;) ), and > is hard to accidentally supply as a file name. > > This is more a usability thing then a crypto thing, so I'd like to > hear more opinions on this. > > Option --no-ecdh( or --ecdh none ) could be useful if user does > not want > to use ECDH for some reason. > > > I do not like this one. A user gets ECDH initialisation for free, and > if a power user really wants to disable ECDH, (s)he can use > --tls-cipher "DEFAULT:!EXP:!ECDH" or something like that. An explicit > extra option adds code, while it is not needed for the functionality. > > Also, to avoid unexpected behaviour like fallback into RSA, we could > force openssl to use DH or ECDH only. > > > Do you have any idea on how to achieve this, other than setting > explicit tls-cipher lists? The cipher list has a limited interface, > which would result in actively maintaining a list of 'approved' > ciphers within the OpenVPN codebase. I would not like to do that. > According to 'man SSL_CTX_set_tmp_rsa_callback' On OpenSSL servers ephemeral RSA key exchange is therefore disabled by default and must be explicitly enabled using the SSL_OP_EPHEMERAL_RSA option of SSL_CTX_set_options(3), violating the TLS/SSL standard. When ephemeral RSA key exchange is required for export ciphers, it will automatically be used without this option! so this would suggest that ephemeral RSA keys are not used by default unless explicitly enabled (as it breaks TLS/SSL). cheers, JJK --------------080308090900020005030805 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 04/03/14 23:48, Steffan Karger wrote:
Hi,

On Tue, Mar 4, 2014 at 10:49 PM, pietrek -- <pietrek.j@...277...> wrote:
[...]
I think we could add option "--dh none"  or "--no-dh". It may be
specified, if user knows what he's doing.

I like that idea. It offers a migration path for users that really want to skip the DH-stuff. I'd vote for "--dh '[none]'", as it does not add a new option (openvpn has more then enough options ;) ), and is hard to accidentally supply as a file name.

This is more a usability thing then a crypto thing, so I'd like to hear more opinions on this.
 
Option --no-ecdh( or --ecdh none ) could be useful if user does not want
to use ECDH for some reason.

I do not like this one. A user gets ECDH initialisation for free, and if a power user really wants to disable ECDH, (s)he can use --tls-cipher "DEFAULT:!EXP:!ECDH" or something like that. An explicit extra option adds code, while it is not needed for the functionality.
 
Also, to avoid unexpected behaviour like fallback into RSA, we could
force openssl to use DH or ECDH only.

Do you have any idea on how to achieve this, other than setting explicit tls-cipher lists? The cipher list has a limited interface, which would result in actively maintaining a list of 'approved' ciphers within the OpenVPN codebase. I would not like to do that.

According to 'man SSL_CTX_set_tmp_rsa_callback'

       On OpenSSL servers ephemeral RSA key exchange is therefore disabled by default and must be explicitly
       enabled  using the SSL_OP_EPHEMERAL_RSA option of SSL_CTX_set_options(3), violating the TLS/SSL
       standard. When ephemeral RSA key exchange is required for export ciphers, it will automatically be
       used without this option!

so this would suggest that ephemeral RSA keys are not used by default unless explicitly enabled (as it breaks TLS/SSL).

cheers,

JJK



--------------080308090900020005030805--