Thread View: news.software.nntp
20 messages
20 total messages
Started by Julien ÉLIE
Sat, 23 Jul 2016 21:05
Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Sat, 23 Jul 2016 21:05
Date: Sat, 23 Jul 2016 21:05
42 lines
3040 bytes
3040 bytes
Hi all,
I've just taken the time to finalize a first version of an
Internet-Draft that could update RFC 4642 (use of TLS with NNTP):
https://tools.ietf.org/html/draft-elie-nntp-tls-recommendations-00
Basically, it adds TLS best current practices to RFC 4642 (disabling
TLS-level compression, preferring strict TLS to port 563, removing RC4
cipher suites from mandatory-to-implement cipher suites) and also gives
several kinds of recommendations (in Section 2).
Thanks beforehand for your comments.
Do not hesitate to tell if something looks wrong, and also what you
think about the issues to address in Appendix D. Especially:
o Section 3.2 of [RFC7525] applied to NNTP adds the following
requirement: a client SHOULD attempt to negotiate TLS even if the
STARTTLS capability label is not advertised by the news server.
The goal is to help prevent SSL Stripping. Yet, an attacker who
can strip STARTTLS from the capability list could easily ensure
that 502 is answered to that command. So, should we all the same
keep that requirement for NNTP? (I would suggest not to keep it.)
o Regarding peering between mode-switching news servers, should
something specific be added? (e.g., as strict TLS is the
preferred way to negotiate TLS, innfeed would connect to port 563
of a news server, and innd would also listen on port 563. Or
should we ask the registration of a new port for that purpose,
NNSP over TLS, like port 433 already dedicated to NNSP? Or should
we recommend the use of stunnel with TCP wrappers, or an
equivalent mechanism, in case using a separate port is not
possible?)
--
Julien ÉLIE
« – Tu n'as rien remarqué d'étrange chez cet Arverne ?
– Oui, son accent. » (Astérix)
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Richard Kettlewell
Date: Sun, 24 Jul 2016 08:49
Date: Sun, 24 Jul 2016 08:49
34 lines
2737 bytes
2737 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes: > Do not hesitate to tell if something looks wrong, and also what you > think about the issues to address in Appendix D. Especially: > > o Section 3.2 of [RFC7525] applied to NNTP adds the following > requirement: a client SHOULD attempt to negotiate TLS even if the > STARTTLS capability label is not advertised by the news server. > The goal is to help prevent SSL Stripping. Yet, an attacker who > can strip STARTTLS from the capability list could easily ensure > that 502 is answered to that command. So, should we all the same > keep that requirement for NNTP? (I would suggest not to keep it.) They are slightly different threat models. To strip the STARTTLS capability label, the attacker must be able to modify traffic from server to client. However, to prevent the STARTTLS command from working, the attacker must not only be able to modify traffic from server to client (to insert the 502 response) but also must be able to modify traffic from client to server, to stop the STARTTLS command from reaching the server. If it does not do this then the client’s next action (if it continues at all) will be an NNTP command but the server will be expecting a TLS ClientHello message. The connection will fail, revealing to the user that something is wrong. Control of both directions will often go together - but not always. So I think the RFC7525 s3.2 requirement should be kept. -- http://www.greenend.org.uk/rjk/
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Sun, 24 Jul 2016 11:20
Date: Sun, 24 Jul 2016 11:20
57 lines
3319 bytes
3319 bytes
Julien ÉLIE wrote: > > I've just taken the time to finalize a first version of an > Internet-Draft that could update RFC 4642 (use of TLS with NNTP): > > https://tools.ietf.org/html/draft-elie-nntp-tls-recommendations-00 > > Basically, it adds TLS best current practices to RFC 4642 (disabling > TLS-level compression, preferring strict TLS to port 563, removing RC4 > cipher suites from mandatory-to-implement cipher suites) and also gives > several kinds of recommendations (in Section 2). > > > Thanks beforehand for your comments. | 2.2. Protocol Versions and Cipher Suites | | NNTP implementations are encouraged to support options to configure | the minimal TLS protocol version to accept, and the cipher suites not | to accept. Additional options can naturally also be supported. The | goal is to enable news administrators to easily and quickly | strengthen security, if need be. First: Is this paragraph intended for the client side too? Often there is no administrator for clients and users create the configuration themselves. Most of them may not be able to decide which protocols and cipher suites are good or bad choices to offer to the server. If there is no client side administrator, who should decide for the users: - Nobody - The newsreader (by offering only options considered safe) - The server (by rejecting offered things considered unsafe) The important point is that with current TLS, the client has more power, a server can not choose a cipher suite that the client has not offered. Second: The number of ciphersuites is constantly increasing, compare the output of: | | $ openssl ciphers -V from an old OpenSSL with a 1.1 prerelease. Following the principle of "least surprise", maybe to explicitly configure what to offer or accept (instead of what should not be offered or rejected respectively) is the better option. Otherwise new ciphers are automatically enabled. E.g. after updating OpenSSL from 1.0 to 1.1 the CCM mode for block ciphers become available and a stream cipher (ChaCha20) is there again - even if RC2 and RC4 were disabled before. In general neither the oldest nor the newest cipher suites may be the most secure. But a ciphersite that use not too old, but mature algorithms should rarely be a bad choice.
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Mon, 25 Jul 2016 19:39
Date: Mon, 25 Jul 2016 19:39
35 lines
2736 bytes
2736 bytes
Hi Richard, >> o Section 3.2 of [RFC7525] applied to NNTP adds the following >> requirement: a client SHOULD attempt to negotiate TLS even if the >> STARTTLS capability label is not advertised by the news server. >> The goal is to help prevent SSL Stripping. Yet, an attacker who >> can strip STARTTLS from the capability list could easily ensure >> that 502 is answered to that command. So, should we all the same >> keep that requirement for NNTP? (I would suggest not to keep it.) > [...] > > Control of both directions will often go together - but not always. So > I think the RFC7525 s3.2 requirement should be kept. I was wrongly assuming both directions would be controlled. Thanks for your input on that subject. So I don't need to change anything in the -00 draft (I had not written the exclusion of that check, and RFC 4642 does not mention that a news client is not supposed to send STARTTLS if not advertised -- whereas for instance in RFC 4644 there is the requirement that a news client MUST NOT send TAKETHIS if STREAMING is not advertised or 203 is not answered to MODE STREAM). Then all the recommendations of RFC 7525 will apply to the use of TLS with NNTP, without any exception. That's good! -- Julien ÉLIE « Il était une fois un homme fidèle, c'est une belle histoire. Il était une fois une femme fidèle, c'est un conte de fées. » (Maurice Jeanneret)
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Mon, 25 Jul 2016 20:06
Date: Mon, 25 Jul 2016 20:06
97 lines
5295 bytes
5295 bytes
Hi Michael,
Glad you began MIME-encoding your name in Netnews articles :)
> | 2.2. Protocol Versions and Cipher Suites
> |
> | NNTP implementations are encouraged to support options to configure
> | the minimal TLS protocol version to accept, and the cipher suites not
> | to accept. Additional options can naturally also be supported. The
> | goal is to enable news administrators to easily and quickly
> | strengthen security, if need be.
>
> First: Is this paragraph intended for the client side too?
> Often there is no administrator for clients and users create the
> configuration themselves. Most of them may not be able to decide which
> protocols and cipher suites are good or bad choices to offer to the
> server. If there is no client side administrator, who should decide for
> the users:
> - Nobody
> - The newsreader (by offering only options considered safe)
> - The server (by rejecting offered things considered unsafe)
With the current wording, this paragraph is also intended for the
client. Yet, I had not in mind configurable options in all cases.
Maybe it should be reworded this way:
NNTP implementations of news servers are encouraged to support options
to configure the minimal TLS protocol version to accept, and the cipher
suites to accept. Additional options can naturally also be supported.
The goal is to enable administrators of news servers to easily and
quickly strengthen security, if need be (for instance by rejecting
cipher suites considered unsafe with regards to local policy). News
clients may also support similar options, either configurable by the
user or enforced by the news reader.
Any better suggestion?
> The important point is that with current TLS, the client has more power,
> a server can not choose a cipher suite that the client has not offered.
Sure a server cannot choose an unoffered cipher suite. The server can
however decide not to use the first cipher suite it knows in the
client's preferences. It may as well choose another one.
I am speaking of the SSL_OP_CIPHER_SERVER_PREFERENCE option in OpenSSL.
By default, INN does that (server's preferences are used).
Configuration TLS options in INN are tlsciphers, tlscompression,
tlseccurve, tlspreferserverciphers and tlsprotocols, described here:
https://www.eyrie.org/~eagle/software/inn/docs/inn.conf.html
> Following the principle of "least surprise", maybe to explicitly
> configure what to offer or accept (instead of what should not be
> offered or rejected respectively) is the better option.
It is indeed what INN does (configure what to accept).
In fact, when writing the draft, I wondered whether it wouldn't be
better to prevent weak cipher suites from being accepted (because they
will always be weak).
But in all cases, it will need a human intervention either to restrict
"AAA" or to allow "DEFAULT,!AAA" (if a cipher suite named AAA is
considered weak, and "DEFAULT" means the default cipher suites proposed
by the underlying TLS implementation).
So your remark is adopted (and reflected in the above rewording of the
paragraph).
> Otherwise new ciphers are automatically enabled. E.g. after updating
> OpenSSL from 1.0 to 1.1 the CCM mode for block ciphers become available
> and a stream cipher (ChaCha20) is there again - even if RC2 and RC4 were
> disabled before.
If we choose "DEFAULT", new ciphers will be automatically enabled (but I
agree with you that the administrator explicitly wanted that when
configuring the option to use "DEFAULT").
> In general neither the oldest nor the newest cipher suites may be the
> most secure. But a ciphersite that use not too old, but mature
> algorithms should rarely be a bad choice.
Wise thought.
--
Julien ÉLIE
« Il était une fois un homme fidèle, c'est une belle histoire. Il
était une fois une femme fidèle, c'est un conte de fées. »
(Maurice Jeanneret)
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Tue, 26 Jul 2016 10:31
Date: Tue, 26 Jul 2016 10:31
102 lines
5767 bytes
5767 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> >
> Glad you began MIME-encoding your name in Netnews articles :)
RFC2047 is now nearly 2 decades old. I hope nobody complains with
compatibility reasons anymore.
> > [2.2. Protocol Versions and Cipher Suites]
> > First: Is this paragraph intended for the client side too?
> > Often there is no administrator for clients and users create the
> > configuration themselves. Most of them may not be able to decide which
> > protocols and cipher suites are good or bad choices to offer to the
> > server. If there is no client side administrator, who should decide for
> > the users:
> > - Nobody
> > - The newsreader (by offering only options considered safe)
> > - The server (by rejecting offered things considered unsafe)
>
> With the current wording, this paragraph is also intended for the
> client. Yet, I had not in mind configurable options in all cases.
> Maybe it should be reworded this way:
>
> NNTP implementations of news servers are encouraged to support options
> to configure the minimal TLS protocol version to accept, and the cipher
> suites to accept. Additional options can naturally also be supported.
> The goal is to enable administrators of news servers to easily and
> quickly strengthen security, if need be (for instance by rejecting
> cipher suites considered unsafe with regards to local policy). News
> clients may also support similar options, either configurable by the
> user or enforced by the news reader.
>
> Any better suggestion?
Is it intended to not use the defined capitalized keywords?
("SHOULD support options" / "MAY also support similar options")
> > The important point is that with current TLS, the client has more power,
> > a server can not choose a cipher suite that the client has not offered.
>
> Sure a server cannot choose an unoffered cipher suite. The server can
> however decide not to use the first cipher suite it knows in the
> client's preferences. It may as well choose another one.
> I am speaking of the SSL_OP_CIPHER_SERVER_PREFERENCE option in OpenSSL.
> By default, INN does that (server's preferences are used).
Is the behaviour the same for the "signature algorithms" extension [1]?
flnews can be compiled to use the OpenSSL 1.0.2 API. The configuration
"RSA+SHA512:RSA+SHA384:RSA+SHA256" is set via 'SSL_CONF_cmd()' in this
case to negotiate only SHA2-based signature algorithms with TLSv1.2
capable servers (and set preference to SHA512).
The OpenSSL documentation [2] say:
|
| If this option is not set then all signature algorithms supported by
| the OpenSSL library are permissible.
Looking at the values defined by [1] it seems like that this can be
as weak as XXX+MD5 (weaker than for TLSv1.0), if OpenSSL is compiled to
support MD5.
> Configuration TLS options in INN are tlsciphers, tlscompression,
> tlseccurve, tlspreferserverciphers and tlsprotocols, described here:
> https://www.eyrie.org/~eagle/software/inn/docs/inn.conf.html
flnews currently only disables SSL according to RFC6176 and RFC7568
with:
|
| SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3
Maybe I should simply add "SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1" and drop
support for OpenSSL 1.0.0 and 1.0.1. The support for 1.0.1 ends in
December anyway.
But some operating systems still use 1.0.1 and currently 1.0.2h is
broken - it can't check large CRLs anymore (like the one from CAcert
for Eternal September). It's not fun.
> > Following the principle of "least surprise", maybe to explicitly
> > configure what to offer or accept (instead of what should not be
> > offered or rejected respectively) is the better option.
>
> It is indeed what INN does (configure what to accept).
> In fact, when writing the draft, I wondered whether it wouldn't be
> better to prevent weak cipher suites from being accepted (because they
> will always be weak).
> But in all cases, it will need a human intervention either to restrict
> "AAA" or to allow "DEFAULT,!AAA" (if a cipher suite named AAA is
> considered weak, and "DEFAULT" means the default cipher suites proposed
> by the underlying TLS implementation).
> So your remark is adopted (and reflected in the above rewording of the
> paragraph).
Now both things are defined the same way ("protocol version to accept"
and "cipher suites to accept"). Looks more consistent.
_________________
[1] <https://tools.ietf.org/html/rfc5246#section-7.4.1.4.1>
[2] <http://wiki.openssl.org/index.php/Manual%3ASSL_CONF_cmd%283%29>
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Tue, 26 Jul 2016 20:10
Date: Tue, 26 Jul 2016 20:10
89 lines
4600 bytes
4600 bytes
Hi Michael,
>> NNTP implementations of news servers are encouraged to support options
>> to configure the minimal TLS protocol version to accept, and the cipher
>> suites to accept. Additional options can naturally also be supported.
>> The goal is to enable administrators of news servers to easily and
>> quickly strengthen security, if need be (for instance by rejecting
>> cipher suites considered unsafe with regards to local policy). News
>> clients may also support similar options, either configurable by the
>> user or enforced by the news reader.
>>
>> Any better suggestion?
>
> Is it intended to not use the defined capitalized keywords?
> ("SHOULD support options" / "MAY also support similar options")
I did not use capitalized keywords because I thought of it as a
recommendation (whence "are encouraged to" in the first sentence). I
don't think an NNTP implementation should be considered non-RFC
compliant regarding the use of TLS with NNTP because it just does not
support such options.
>> Sure a server cannot choose an unoffered cipher suite. The server can
>> however decide not to use the first cipher suite it knows in the
>> client's preferences. It may as well choose another one.
>> I am speaking of the SSL_OP_CIPHER_SERVER_PREFERENCE option in OpenSSL.
>> By default, INN does that (server's preferences are used).
>
> Is the behaviour the same for the "signature algorithms" extension [1]?
It seems so, according to:
https://www.openssl.org/docs/manmaster/ssl/SSL_CONF_cmd.html
-serverpref
Use server and not client preference order when determining which cipher
suite, signature algorithm or elliptic curve to use for an incoming
connection. Equivalent to SSL_OP_CIPHER_SERVER_PREFERENCE. Only used by
servers.
> The OpenSSL documentation [2] say:
> |
> | If this option is not set then all signature algorithms supported by
> | the OpenSSL library are permissible.
>
> Looking at the values defined by [1] it seems like that this can be
> as weak as XXX+MD5 (weaker than for TLSv1.0), if OpenSSL is compiled to
> support MD5.
In that case, I hope OpenSSL is smart enough not to put MD5 at the top
of its preferences!
> flnews currently only disables SSL according to RFC6176 and RFC7568
> with:
> |
> | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3
>
> Maybe I should simply add "SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1" and drop
> support for OpenSSL 1.0.0 and 1.0.1. The support for 1.0.1 ends in
> December anyway.
No need to drop support for OpenSSL 1.0.0 and 1.0.1.
You can do:
#ifdef SSL_OP_NO_TLSv1_1
SSL_CTX_set_options(CTX, SSL_OP_NO_TLSv1_1);
#endif
Anyway, are you sure you want to unconditionally allow only TLS 1.2?
Wouldn't it cause interoperability issues with a few (old) news servers?
> Now both things are defined the same way ("protocol version to accept"
> and "cipher suites to accept"). Looks more consistent.
Maybe I should also add "signature algorithms and elliptic curves to
accept"?
--
Julien ÉLIE
« Il était une fois un homme fidèle, c'est une belle histoire. Il
était une fois une femme fidèle, c'est un conte de fées. »
(Maurice Jeanneret)
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Wed, 27 Jul 2016 08:55
Date: Wed, 27 Jul 2016 08:55
109 lines
5801 bytes
5801 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > Julien ÉLIE wrote:
> > >
> > > NNTP implementations of news servers are encouraged to support options
> > > to configure the minimal TLS protocol version to accept, and the cipher
> > > suites to accept. Additional options can naturally also be supported.
> > > The goal is to enable administrators of news servers to easily and
> > > quickly strengthen security, if need be (for instance by rejecting
> > > cipher suites considered unsafe with regards to local policy). News
> > > clients may also support similar options, either configurable by the
> > > user or enforced by the news reader.
> > >
> > > Any better suggestion?
> >
> > Is it intended to not use the defined capitalized keywords?
> > ("SHOULD support options" / "MAY also support similar options")
>
> I did not use capitalized keywords because I thought of it as a
> recommendation (whence "are encouraged to" in the first sentence). I
> don't think an NNTP implementation should be considered non-RFC
> compliant regarding the use of TLS with NNTP because it just does not
> support such options.
OK, I wondered because strictly speaking only ignoring "MUST" and
"MUST NOT" makes an implementation non-compliant.
> > > Sure a server cannot choose an unoffered cipher suite. The server can
> > > however decide not to use the first cipher suite it knows in the
> > > client's preferences. It may as well choose another one.
> > > I am speaking of the SSL_OP_CIPHER_SERVER_PREFERENCE option in OpenSSL.
> > > By default, INN does that (server's preferences are used).
> >
> > Is the behaviour the same for the "signature algorithms" extension [1]?
>
> It seems so, according to:
> https://www.openssl.org/docs/manmaster/ssl/SSL_CONF_cmd.html
>
> -serverpref
> Use server and not client preference order when determining which
> cipher suite, signature algorithm or elliptic curve to use for an
> incoming connection. Equivalent to SSL_OP_CIPHER_SERVER_PREFERENCE.
> Only used by servers.
>
>
> > The OpenSSL documentation [2] say:
> > |
> > | If this option is not set then all signature algorithms supported by
> > | the OpenSSL library are permissible.
> >
> > Looking at the values defined by [1] it seems like that this can be
> > as weak as XXX+MD5 (weaker than for TLSv1.0), if OpenSSL is compiled to
> > support MD5.
>
> In that case, I hope OpenSSL is smart enough not to put MD5 at the top
> of its preferences!
Yes, that is very likely not the case.
> > flnews currently only disables SSL according to RFC6176 and RFC7568
> > with:
> > |
> > | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3
> >
> > Maybe I should simply add "SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1" and drop
> > support for OpenSSL 1.0.0 and 1.0.1. The support for 1.0.1 ends in
> > December anyway.
>
> No need to drop support for OpenSSL 1.0.0 and 1.0.1.
> You can do:
>
> #ifdef SSL_OP_NO_TLSv1_1
> SSL_CTX_set_options(CTX, SSL_OP_NO_TLSv1_1);
> #endif
This requires recompilation and IMHO may create potential ABI problems
with binary packages and OpenSSL shared libraries (currently it should
work with the 1.0.0 shared libraries).
> Anyway, are you sure you want to unconditionally allow only TLS 1.2?
> Wouldn't it cause interoperability issues with a few (old) news servers?
What I want to drop is not the support for old protocols, but the old
OpenSSL 1.0 API/ABI (using the 1.1 subset already supported by 1.0.2
instead).
You use the words "easily and quickly", changing the configuration
should really be possible at runtime without recompiling.
The configuration for the supported protocols is not the only problem.
For the configuration of the signature algorithms it is the same:
Compile to not configure them at all or require OpenSSL 1.0.2.
Another problem are FFDHE groups. They can't be negotiated in TLS up
to 1.2, but flnews can check that the servers choice is at least 1024
bits large ... but again only with OpenSSL 1.0.2.
> > Now both things are defined the same way ("protocol version to accept"
> > and "cipher suites to accept"). Looks more consistent.
>
> Maybe I should also add "signature algorithms and elliptic curves to
> accept"?
TLSv1.3 seems to change things a bit because FFDHE groups can now be
negotiated too (codes starting at 256):
<https://tools.ietf.org/html/draft-ietf-tls-tls13-14#section-4.2.3>
Maybe use the words "signature algorithms" and "(EC)DHE groups"?
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Wed, 27 Jul 2016 10:38
Date: Wed, 27 Jul 2016 10:38
100 lines
6528 bytes
6528 bytes
Julien ÉLIE wrote: > > [...] > Maybe I should also add "signature algorithms and elliptic curves to > accept"? For certificate based authentication there are more things to check. flnews do it like that: | | flnews: TLS: Warning: X.509 certificate revocation checks disabled | flnews: TLS: Using protocol: TLSv1 with cipher suite DHE-RSA-AES256-SHA | flnews: TLS: DH parameter size: 3072 bit | flnews: TLS: Certificate level 0 (Root) in chain: | flnews: TLS: RSA key modulus size: 3072 bit | [...] | flnews: TLS: Self signature is not used | flnews: TLS: Server certificate: | flnews: TLS: Subject Name: [...] (matches hostname) | flnews: TLS: Server certificate verification successful (revocation checks were skipped) If the key in a certificate is too weak, the connection is rejected. The threshold (currently 1024 bit) should become a config parmameter too. If the hostname does not match the Subject of the certificate, the connection is rejected. OpenSSL 1.0.x doesn't check it internally. Revocation checks are the most annoying thing. If I recompile to check for revocation the above self signed certificate is no longer accepted. But for individual.net it works fine (and fast, because the CRLs are small and downloaded in less than a second): | | [...] | flnews: TLS: ----------------------------------------------------- | flnews: TLS: Automatic CRL maintenance (EXPERIMENTAL) | flnews: TLS: Server certificate: | flnews: TLS: Issuer: C = DE, ST = Berlin, L = Berlin, O = Freie Universitaet Berlin, OU = ZEDAT, CN = Freie Universitaet Berlin - FU-CA - G01, emailAddress = ca@FU-Berlin.DE | flnews: TLS: CRL distribution point 0: http://cdp1.pca.dfn.de/fu-ca/pub/crl/cacrl.crl | flnews: EXT: File download delegation to ~/.flnews/crls/CRL0 for: http://cdp1.pca.dfn.de/fu-ca/pub/crl/cacrl.crl | flnews: INET: Using IPv4 protocol | flnews: HTTP: File successfully downloaded | flnews: TLS: Intermediate certificate: | flnews: TLS: Issuer: C = DE, O = DFN-Verein, OU = DFN-PKI, CN = DFN-Verein PCA Global - G01 | flnews: TLS: CRL distribution point 0: http://cdp1.pca.dfn.de/global-root-ca/pub/crl/cacrl.crl | flnews: EXT: File download delegation to ~/.flnews/crls/CRL1 for: http://cdp1.pca.dfn.de/global-root-ca/pub/crl/cacrl.crl | flnews: INET: Using IPv4 protocol | flnews: HTTP: File successfully downloaded | flnews: TLS: Intermediate certificate: | flnews: TLS: Issuer: C = DE, O = Deutsche Telekom AG, OU = T-TeleSec Trust Center, CN = Deutsche Telekom Root CA 2 | flnews: TLS: CRL distribution point 0: http://pki0336.telesec.de/rl/DT_ROOT_CA_2.crl | flnews: EXT: File download delegation to ~/.flnews/crls/CRL2 for: http://pki0336.telesec.de/rl/DT_ROOT_CA_2.crl | flnews: INET: Using IPv4 protocol | flnews: HTTP: File successfully downloaded | flnews: TLS: Root certificate: | flnews: TLS: Issuer: C = DE, O = Deutsche Telekom AG, OU = T-TeleSec Trust Center, CN = Deutsche Telekom Root CA 2 | flnews: TLS: Always trusted if installed (Must be uninstalled for revocation) | flnews: TLS: ----------------------------------------------------- | flnews: TLS: Verification of certificate aborted because of CRL update | flnews: NNTP: TLS module has requested to close the connection CRL handling on-the-fly is ugly with OpenSSL. Simply continue here would use the old CRLs. They are already loaded into the SSL context and the check will succeed if they are not expired - what is the normal case with daily updates. But this is not the intended behaviour and the connection is therefore closed, the SSL context destroyed and anything reestablished from the start: | | flnews: TLS: Location of X.509 CRLs: ~/.flnews/crls/ | flnews: TLS: Using protocol: TLSv1.2 with cipher suite DHE-RSA-AES256-GCM-SHA384 | flnews: TLS: Signature algorithm for key exchange: RSA-SHA512 | flnews: TLS: DH parameter size: 1024 bit | flnews: TLS: Warning: DH parameters should be at least 3072 bit | flnews: TLS: Certificate level 0 (Server) in chain: | flnews: TLS: RSA key modulus size: 2048 bit | flnews: TLS: Warning: RSA key modulus should be at least 3072 bit | [...] | flnews: TLS: Signature algorithm: RSA-SHA256 | flnews: TLS: Certificate level 1 in chain: | flnews: TLS: RSA key modulus size: 2048 bit | flnews: TLS: Warning: RSA key modulus should be at least 3072 bit | flnews: TLS: Signature algorithm: RSA-SHA256 | flnews: TLS: Certificate level 2 in chain: | flnews: TLS: RSA key modulus size: 2048 bit | flnews: TLS: Warning: RSA key modulus should be at least 3072 bit | flnews: TLS: Signature algorithm: RSA-SHA256 | flnews: TLS: Certificate level 3 (Root) in chain: | flnews: TLS: RSA key modulus size: 2048 bit | flnews: TLS: Warning: RSA key modulus should be at least 3072 bit | flnews: TLS: Self signature is not used | flnews: TLS: Server certificate: | flnews: TLS: Subject Alternative Name: individual.de (doesn't match hostname) | flnews: TLS: Subject Alternative Name: news.individual.de (matches hostname) | flnews: TLS: Server certificate verification successful For Eternal September it is broken again because of the "large CRL" bug in OpenSSL 1.0.2h :-(
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Thu, 28 Jul 2016 20:33
Date: Thu, 28 Jul 2016 20:33
49 lines
2971 bytes
2971 bytes
Hi Michael, >> I did not use capitalized keywords because I thought of it as a >> recommendation (whence "are encouraged to" in the first sentence). I >> don't think an NNTP implementation should be considered non-RFC >> compliant regarding the use of TLS with NNTP because it just does not >> support such options. > > OK, I wondered because strictly speaking only ignoring "MUST" and > "MUST NOT" makes an implementation non-compliant. > What I want to drop is not the support for old protocols, but the old > OpenSSL 1.0 API/ABI (using the 1.1 subset already supported by 1.0.2 > instead). Note that OpenSSL 1.1.0 introduces a new (preferred) means to set the minimal TLS protocol version: the SSL_set_min_proto_version() function. So one day I bet you'll use it :) > You use the words "easily and quickly", changing the configuration > should really be possible at runtime without recompiling. It should, indeed. >> Maybe I should also add "signature algorithms and elliptic curves to >> accept"? > > TLSv1.3 seems to change things a bit because FFDHE groups can now be > negotiated too (codes starting at 256): > <https://tools.ietf.org/html/draft-ietf-tls-tls13-14#section-4.2.3> > > Maybe use the words "signature algorithms" and "(EC)DHE groups"? Oh, good catch! -- Julien ÉLIE « Le chemin le plus court d'un point à un autre est la ligne droite, à condition que les deux points soient bien en face l'un de l'autre. » (Pierre Dac)
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Thu, 28 Jul 2016 20:39
Date: Thu, 28 Jul 2016 20:39
33 lines
2842 bytes
2842 bytes
I forgot to answer a part of the message:
>>> I did not use capitalized keywords because I thought of it as a
>>> recommendation (whence "are encouraged to" in the first sentence). I
>>> don't think an NNTP implementation should be considered non-RFC
>>> compliant regarding the use of TLS with NNTP because it just does not
>>> support such options.
>>
>> OK, I wondered because strictly speaking only ignoring "MUST" and
>> "MUST NOT" makes an implementation non-compliant.
Such an implementation would be "conditionally compliant".
Better than non-compliant at all :)
RFC 2557:
An implementation is not compliant if it fails to satisfy one or more
of the MUST requirements for the protocols it implements. An
implementation that satisfies all the MUST and all the SHOULD
requirements for its protocols is said to be "unconditionally
compliant"; one that satisfies all the MUST requirements but not all
the SHOULD requirements for its protocols is said to be
"conditionally compliant."
--
Julien ÉLIE
« La libertad, Sancho, es uno de los más preciosos dones que a los
hombres dieron los cielos; con ella no pueden igualarse los tesoros
que encierran la tierra y el mar: por la libertad, asĂ como por la
honra, se puede y debe aventurar la vida. » (Miguel de Cervantes
Saavedra)
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Fri, 29 Jul 2016 08:49
Date: Fri, 29 Jul 2016 08:49
31 lines
2666 bytes
2666 bytes
Julien ÉLIE wrote: > > I forgot to answer a part of the message: > > > > > I did not use capitalized keywords because I thought of it as a > > > > recommendation (whence "are encouraged to" in the first sentence). I > > > > don't think an NNTP implementation should be considered non-RFC > > > > compliant regarding the use of TLS with NNTP because it just does not > > > > support such options. > > > > > > OK, I wondered because strictly speaking only ignoring "MUST" and > > > "MUST NOT" makes an implementation non-compliant. > > Such an implementation would be "conditionally compliant". > Better than non-compliant at all :) Agreed. But with your wording - without the keywords - it can stay "unconditionally compliant" even when the recommendations are ignored. > RFC 2557: > An implementation is not compliant if it fails to satisfy one or more > of the MUST requirements for the protocols it implements. An > implementation that satisfies all the MUST and all the SHOULD > requirements for its protocols is said to be "unconditionally > compliant"; one that satisfies all the MUST requirements but not all > the SHOULD requirements for its protocols is said to be > "conditionally compliant." Thanks for the pointer.
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Fri, 29 Jul 2016 09:21
Date: Fri, 29 Jul 2016 09:21
20 lines
2104 bytes
2104 bytes
Julien ÉLIE wrote: > Michael Bäuerle wrote: > > > > [...] > > What I want to drop is not the support for old protocols, but the old > > OpenSSL 1.0 API/ABI (using the 1.1 subset already supported by 1.0.2 > > instead). > > Note that OpenSSL 1.1.0 introduces a new (preferred) means to set the > minimal TLS protocol version: the SSL_set_min_proto_version() function. > So one day I bet you'll use it :) Yes! And 'X509_check_host()' that seem to be already present in 1.0.2, but is not available in 1.0.0 and 1.0.1. Maybe the best new feature in 1.1.0 is 'SSL_CTX_set_security_level()': <https://www.openssl.org/docs/manmaster/ssl/SSL_CTX_set_security_level.html> Set a "level" and OpenSSL will automatically reject anything below it.
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Fri, 29 Jul 2016 19:54
Date: Fri, 29 Jul 2016 19:54
83 lines
4639 bytes
4639 bytes
Hi Michael,
>> Maybe I should also add "signature algorithms and elliptic curves to
>> accept"?
>
> For certificate based authentication there are more things to check.
Isn't RFC 7525 enough for that? My proposed draft explicitly includes
it (at the beginning of Section 2):
The best current practices documented in the "Recommendations for
Secure Use of TLS and DTLS" [RFC7525] are included here by reference.
Instead of repeating those recommendations here, this document mostly
provides supplementary information regarding secure implementation
and deployment of NNTP technologies.
Let's check below that your checks are all mentioned in RFC 7525.
> If the key in a certificate is too weak, the connection is rejected.
> The threshold (currently 1024 bit) should become a config parameter
> too.
It is level 1 of SSL_CTX_set_security_level() you mentioned in another
message. Thanks for that pointer too!
Section 4.1 "General Guidelines":
o Implementations SHOULD NOT negotiate cipher suites that use
algorithms offering less than 128 bits of security.
Looks like it SHOULD be level 3 then (3072 bits). I doubt many
implementations already enforce that strength.
> If the hostname does not match the Subject of the certificate, the
> connection is rejected. OpenSSL 1.0.x doesn't check it internally.
Section 6.1 "Host Name Validation":
Application authors should take note that some TLS implementations do
not validate host names. If the TLS implementation they are using
does not validate host names, authors might need to write their own
validation code or consider using a different TLS implementation.
[...]
Host name validation typically applies only to the leaf "end entity"
certificate. Naturally, in order to ensure proper authentication in
the context of the PKI, application clients need to verify the entire
certification path in accordance with [RFC5280] (see also [RFC6125]).
> Revocation checks are the most annoying thing.
> But for individual.net it works fine (and fast, because the CRLs are
> small and downloaded in less than a second)
Delt with Section 6.5 "Certificate Revocation":
o Although Certificate Revocation Lists (CRLs) are the most widely
supported mechanism for distributing revocation information, they
have known scaling challenges that limit their usefulness (despite
workarounds such as partitioned CRLs and delta CRLs).
Yeah, like you noted :)
> CRL handling on-the-fly is ugly with OpenSSL. Simply continue here would
> use the old CRLs.
Do you know whether they improved that in 1.1.0? (Did you try to ask in
the openssl-users mailing-list how to do that cleanly? otherwise, to
plan to improve that in a future version?)
--
Julien ÉLIE
« La libertad, Sancho, es uno de los más preciosos dones que a los
hombres dieron los cielos; con ella no pueden igualarse los tesoros
que encierran la tierra y el mar: por la libertad, asĂ como por la
honra, se puede y debe aventurar la vida. » (Miguel de Cervantes
Saavedra)
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Sat, 30 Jul 2016 11:25
Date: Sat, 30 Jul 2016 11:25
108 lines
5491 bytes
5491 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > Julien ÉLIE wrote:
> > >
> > > Maybe I should also add "signature algorithms and elliptic curves to
> > > accept"?
> >
> > For certificate based authentication there are more things to check.
>
> Isn't RFC 7525 enough for that? My proposed draft explicitly includes
> it (at the beginning of Section 2):
>
> The best current practices documented in the "Recommendations for
> Secure Use of TLS and DTLS" [RFC7525] are included here by reference.
> Instead of repeating those recommendations here, this document mostly
> provides supplementary information regarding secure implementation
> and deployment of NNTP technologies.
I had read your quoted section, but not read RFC7525 before posting
my article. Sorry for being not careful enough here.
> Let's check below that your checks are all mentioned in RFC 7525.
>
>
> > If the key in a certificate is too weak, the connection is rejected.
> > The threshold (currently 1024 bit) should become a config parameter
> > too.
>
> It is level 1 of SSL_CTX_set_security_level() you mentioned in another
> message. Thanks for that pointer too!
>
> Section 4.1 "General Guidelines":
>
> o Implementations SHOULD NOT negotiate cipher suites that use
> algorithms offering less than 128 bits of security.
>
> Looks like it SHOULD be level 3 then (3072 bits). I doubt many
> implementations already enforce that strength.
Yes, very few certificates use RSA keys stronger than 2048 bit.
The same is true for DH parameters (or even weaker). I have asked
Individual.net for stronger parameters and the answer was that many
client implementations used by their customers cannot handle >1024 bits,
and they don't want to create interoperability problems.
RFC7525 says in 4.4:
|
| With a key exchange based on modular exponential (MODP) Diffie-
| Hellman groups ("DHE" cipher suites), DH key lengths of at least 2048
| bits are RECOMMENDED.
The NIST [1] and the OpenSSL documentation consider 3072 bits for RSA
keys and DH groups as roughly equivalent strong compared to a symmetric
cipher that provides "128 bits of security".
Because anybody use at least AES128 today, I have set the warning
threshold to 3072 bit for both.
> [Section 6.1 "Host Name Validation"]
>
> > Revocation checks are the most annoying thing.
> > But for individual.net it works fine (and fast, because the CRLs are
> > small and downloaded in less than a second)
>
> Delt with Section 6.5 "Certificate Revocation":
>
> o Although Certificate Revocation Lists (CRLs) are the most widely
> supported mechanism for distributing revocation information, they
> have known scaling challenges that limit their usefulness (despite
> workarounds such as partitioned CRLs and delta CRLs).
>
> Yeah, like you noted :)
Some CAs seem to offer a CRL only as alibi - but really wants you to
*not* use them. The CRL from CAcert is about 7 Mbyte large and they
limit the transfer rate on the server so that the download takes 15
minutes or more (the server seems to be never faster, so I assume this
is an artificial transfer rate limit).
I have added an optional pop-up window to flnews for this case. It
asks:
|
| TLS certificate revocation list (CRL)
| update interval elapsed. Update now?
The options are "OK" and "Skip". If old CRLs are present and not expired
yet, the revocation checks should pass for both.
> > CRL handling on-the-fly is ugly with OpenSSL. Simply continue here would
> > use the old CRLs.
>
> Do you know whether they improved that in 1.1.0? (Did you try to ask
> in the openssl-users mailing-list how to do that cleanly? otherwise,
> to plan to improve that in a future version?)
Not yet. My revocation check implementation is still in experimental
state and completely disabled in the default configuration.
Currently I'm pleased if it works at all. As I have written, OpenSSL
1.0.2h is broken. But I have read on the mailing list that the bug is
already fixed in the repository.
__________________
[1] <https://www.keylength.com/en/4/>
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Sun, 31 Jul 2016 13:33
Date: Sun, 31 Jul 2016 13:33
24 lines
2394 bytes
2394 bytes
Hi Michael, > Some CAs seem to offer a CRL only as alibi - but really wants you to > *not* use them. The CRL from CAcert is about 7 Mbyte large and they > limit the transfer rate on the server so that the download takes 15 > minutes or more (the server seems to be never faster, so I assume this > is an artificial transfer rate limit). http://blog.cacert.org/2013/10/efficient-method-for-frequent-retrieval-of-crls/ They recommend the use of their OCSP responder instead of CRL. Or to update CRL via "rsync -avz crl.cacert.org::crl crl-dir" which will be far faster (as it only retrieves the differences since the last rsync call). -- Julien ÉLIE « Utiliser vi n'est pas un péché, c'est une punition. Car souvenez- vous que vi-vi-vi est l'éditeur de la Bête. » (Stallman, Church of Emacs)
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Mon, 01 Aug 2016 10:00
Date: Mon, 01 Aug 2016 10:00
44 lines
3338 bytes
3338 bytes
Julien ÉLIE wrote: > Michael Bäuerle wrote: > > > > Some CAs seem to offer a CRL only as alibi - but really wants you to > > *not* use them. The CRL from CAcert is about 7 Mbyte large and they > > limit the transfer rate on the server so that the download takes 15 > > minutes or more (the server seems to be never faster, so I assume this > > is an artificial transfer rate limit). > > http://blog.cacert.org/2013/10/efficient-method-for-frequent-retrieval-of-crls/ > > They recommend the use of their OCSP responder instead of CRL. > Or to update CRL via "rsync -avz crl.cacert.org::crl crl-dir" which > will be far faster (as it only retrieves the differences since the last > rsync call). I don't like OCSP in general because using it requires to share additional information with the CA. I have to tell the CA (that I don't really trust - but have no other choice) which specific certificate to check. The CA can then create a profile how often and at which times I use the service associated with the certificate. rsync would be a much better solution, but CAcert doesn't list such an access method in their certificates: | | [...] | Authority Information Access: | OCSP - URI:http://ocsp.cacert.org/ | | X509v3 CRL Distribution Points: | Full Name: | URI:http://crl.cacert.org/revoke.crl How should a TLS agent automatically detect how to retrieve the CRL via rsync? Doing CRL updates manually or with cron jobs is too much annoying work. For OpenSSL simply downloading is not even sufficient, symlinks must be created with 'c_rehash' too. And after such an update, all programs using OpenSSL have to take care to not establish new connections with existing SSL contexts (that contain old CRLs). In real life nobody do that - it really should work transparently.
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Russ Allbery
Date: Mon, 01 Aug 2016 17:07
Date: Mon, 01 Aug 2016 17:07
17 lines
2055 bytes
2055 bytes
Michael Bäuerle <michael.baeuerle@stz-e.de> writes:
> I don't like OCSP in general because using it requires to share
> additional information with the CA. I have to tell the CA (that I don't
> really trust - but have no other choice) which specific certificate to
> check. The CA can then create a profile how often and at which times I
> use the service associated with the certificate.
A good solution to this is for the server side to do OCSP stapling.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Michael Bäuerle
Date: Mon, 01 Aug 2016 17:52
Date: Mon, 01 Aug 2016 17:52
19 lines
2339 bytes
2339 bytes
Russ Allbery wrote: > Michael Bäuerle <michael.baeuerle@stz-e.de> writes: > > > > I don't like OCSP in general because using it requires to share > > additional information with the CA. I have to tell the CA (that I don't > > really trust - but have no other choice) which specific certificate to > > check. The CA can then create a profile how often and at which times I > > use the service associated with the certificate. > > A good solution to this is for the server side to do OCSP stapling. The normal OCSP stapling from RFC6066 looked not sufficient, because it doesn't provide information for the whole certificate chain. But yes, I see there is a newer status_request_v2 extension defined in RFC6961. It is so new that likely few servers already support it - but it really looks promising.
Re: Draft -00 for modernizing TLS usage with NNTP
Author: Julien ÉLIE
Date: Fri, 05 Aug 2016 14:40
Date: Fri, 05 Aug 2016 14:40
31 lines
2033 bytes
2033 bytes
Hi all,
Thanks for all your valuable remarks on the -00 version.
Now integrated into -01:
https://tools.ietf.org/html/draft-elie-nntp-tls-recommendations-01
D.1. Changes since -00
o Clarify in the introduction of Section 2 that NNTP implementations
compliant with this document are REQUIRED to also comply with
[RFC7525].
o Improve the wording of Section 2.2 to mention that configuration
is primarily intended for news servers. Also, be more consistent
in the options to accept, and include signature algorithms and
named groups.
Of course, if you spot any things to improve, feel free to tell.
--
Julien ÉLIE
« La terre étant ronde, le kilomètre devrait être rond et non pas
carré. » (Ramón Gomez de La Serna)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads