Article View: news.software.nntp
Article #87492Re: Draft -00 for modernizing TLS usage with NNTP
From: 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 :-(
Technical Details
Message-ID:
<AABXmI8tX18AAC+v.A1.flnews@WStation5.stz-e.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<nn0m6t$j5k$1@news.trigofacile.com> <AABXlKRk3K0AAAnJ.A1.flnews@Server4.micha.freeshell.org> <nn5rfs$as7$1@news.trigofacile.com> <AABXlzwYKRUAABSK.A1.flnews@WStation5.stz-e.de> <nn8g42$913$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <AABXmI8tX18AAC+v.A1.flnews@WStation5.stz-e.de> Subject: Re: Draft -00 for modernizing TLS usage with NNTP Date: Wed, 27 Jul 2016 12:38:37 +0200 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <nn0m6t$j5k$1@news.trigofacile.com> <AABXlKRk3K0AAAnJ.A1.flnews@Server4.micha.freeshell.org> <nn5rfs$as7$1@news.trigofacile.com> <AABXlzwYKRUAABSK.A1.flnews@WStation5.stz-e.de> <nn8g42$913$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Lines: 98 Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net ySQqZX46Hd6317Fxr4d42QRQaOIcOVikltY8mSIAANP5FuhG0p X-Orig-Path: not-for-mail Cancel-Lock: sha1:mkZ1GQWFDuOsORVG+M68NfRRV+U= sha1:8dQdUAD9WeuL+PBP01xwy/sFhIU= Injection-Date: Wed, 27 Jul 2016 10:38:37 -0000 User-Agent: flnews/0.14pre47 (for NetBSD) X-Received-Bytes: 6339 X-Received-Body-CRC: 1411099413