JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for TB-SUPPORT Archives


TB-SUPPORT Archives

TB-SUPPORT Archives


TB-SUPPORT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

TB-SUPPORT Home

TB-SUPPORT Home

TB-SUPPORT  November 2017

TB-SUPPORT November 2017

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: We think trust anchors 1.88-1 breaks on SL6

From:

"Jensen, Jens (STFC,RAL,SC)" <[log in to unmask]>

Reply-To:

Testbed Support for GridPP member institutes <[log in to unmask]>

Date:

Thu, 30 Nov 2017 10:51:54 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (379 lines)

Hi Daniela,

Yes, David Groep also suggested this. While adding an extension to the
CRL is Mostly Harmless®, making it critical is not... it risks breaking
even more stuff.  Before I do anything I'll have a quick look at
existing CRLs and see if any have critical extensions - I suspect there
are none.

If I have to pick one, looking through RFC 5280, section 5.2, suggests
the AKI (section 5.2.1) is least likely to harm anything if made critical.

Cheers
--jens


On 30/11/2017 10:38, Daniela Bauer wrote:
> Hi All,
>
> Can we please *not* go down the "every site must update their
> software" route ? This will take years to fix. (I'll take Steve 6.4 as
> a case in point....;-)
>
> @Jens - would you be able to generate a cert with the critical
> extension and we can try it out ?
> Everyone updates their CAs, so it there is anyway to fix it there,
> this is the way forward.
>
> Thanks,
> Daniela
>
>
> On 30 November 2017 at 10:28, Kashif Mohammad
> <[log in to unmask]
> <mailto:[log in to unmask]>> wrote:
>
>
>
>     >>>>I've patched the GridPP VOMS admin server (unfortunately, they
>     don't
>     >>>>depend on the bouncycastle rpm, they ship it themselves as
>     part of the
>     >>>>voms-admin-server rpm, I just hope they haven't modified it). Now
>     >>>>everyone should be able to access the web page regardless of
>     which CA
>     >>>>version is installed on the server or in the browser.
>     >>>>I've also updated the trust anchors to 1.88.
>     >>>>
>     >>>>Kashif, Pete: Can you leave the trust anchor version at 1.87
>     on voms02 for
>     >>>>now, so we still have a server with the old version that
>     clients can use
>     >>>>which haven't updated their CAs yet ?
>
>     I haven't updated trust anchor to 1.88 on voms server yet. I will
>     leave it to 1.87 for time being.
>
>     Kashif
>
>     >>>>Cheers,
>     >>>>Robert
>     >>>>
>     >>>>On 30/11/17 08:20, Robert Frank wrote:
>     >>>>> Hi Steve,
>     >>>>>
>     >>>>> it needs to be installed on all SL6 machines that run any
>     Java program
>     >>>>(client or server) that requires any type of certificate
>     validation. That's any
>     >>>>Java client in general as they should be validating the server
>     certificate and
>     >>>>any Java server the requires client certificate authentication
>     (which in our
>     >>>>case covers pretty much everything).
>     >>>>> So far, I've only tested it with the java voms client, I
>     don't know yet if it
>     >>>>will work with Argus or CREAM, or if there are other issues.
>     >>>>>
>     >>>>> Cheers,
>     >>>>> Robert
>     >>>>>
>     >>>>> On 29/11/17 20:09, sjones wrote:
>     >>>>>> Robert,
>     >>>>>>
>     >>>>>> does the patched copy of BouncyCastle need to be installed
>     on ARGUS
>     >>>>server, or client (e.g. CEs. SEs) or all the above?
>     >>>>>>
>     >>>>>> Ste
>     >>>>>>
>     >>>>>>
>     >>>>>> On 2017-11-29 19:01, Robert Frank wrote:
>     >>>>>>> Hi all,
>     >>>>>>>
>     >>>>>>> I think I've tracked down the source of the problem.
>     >>>>>>>
>     >>>>>>> When bouncycastle verifies the certificate paths it
>     compares the
>     >>>>>>> chain it gets from the server with the local installed
>     certificates.
>     >>>>>>> If there's a difference in a CA certificate in the same
>     position
>     >>>>>>> (which is the case for 2B as it has changed) it executes a
>     code
>     >>>>>>> block that is never executed otherwise.
>     >>>>>>> Long story short, in the SL6 version it executes the following
>     >>>>>>> method at some point:
>     >>>>>>>
>     >>>>>>>     private static boolean isDeltaCRL(X509CRL crl)
>     >>>>>>>     {
>     >>>>>>>         Set critical = crl.getCriticalExtensionOIDs();
>     >>>>>>>         return
>     >>>>>>>
>     critical.contains(RFC3280CertPathUtilities.DELTA_CRL_INDICATOR);
>     >>>>>>>     }
>     >>>>>>>
>     >>>>>>> If there are no critical extensions in the crl, the functions
>     >>>>>>> returns null, causing a null pointer exception and the
>     problems.
>     >>>>>>>
>     >>>>>>> They have fixed that in newer bouncycastle versions (eg
>     CentOS 7):
>     >>>>>>>
>     >>>>>>>     private static boolean isDeltaCRL(X509CRL crl)
>     >>>>>>>     {
>     >>>>>>>         Set critical = crl.getCriticalExtensionOIDs();
>     >>>>>>>         if (critical == null)
>     >>>>>>>         {
>     >>>>>>>             return false;
>     >>>>>>>         }
>     >>>>>>>         return
>     >>>>>>>
>     critical.contains(RFC3280CertPathUtilities.DELTA_CRL_INDICATOR);
>     >>>>>>>     }
>     >>>>>>>
>     >>>>>>> I've built an SL6 bouncycastle rpm which uses the fixed
>     >>>>>>> implementation of that function:
>     >>>>>>>
>     >>>>>>> rpm:
>     >>>>>>>
>     http://mirror.tier2.hep.manchester.ac.uk/Repositories/local/6/x86_64
>     <http://mirror.tier2.hep.manchester.ac.uk/Repositories/local/6/x86_64>
>     >>>>>>> /bouncycastle-1.46-1.el6.1.noarch.rpm
>     >>>>>>> src:
>     >>>>>>>
>     http://mirror.tier2.hep.manchester.ac.uk/Repositories/local/6/source
>     <http://mirror.tier2.hep.manchester.ac.uk/Repositories/local/6/source>
>     >>>>>>> s/bouncycastle-1.46-1.el6.1.src.rpm
>     >>>>>>> patch:
>     >>>>>>>
>     http://mirror.tier2.hep.manchester.ac.uk/tier2/deltacrl.patch
>     <http://mirror.tier2.hep.manchester.ac.uk/tier2/deltacrl.patch>
>     >>>>>>>
>     >>>>>>> After installing the rpm, my problems with the java voms
>     clients
>     >>>>disappeared.
>     >>>>>>>
>     >>>>>>> More testing is needed though.
>     >>>>>>>
>     >>>>>>> An alternative fix could be for the CA to add some critical
>     >>>>>>> extensions to the CRLs :-).
>     >>>>>>>
>     >>>>>>> Cheers,
>     >>>>>>> Robert
>     >>>>>>>
>     >>>>>>>
>     >>>>>>> On 29/11/17 17:56, Simon Fayer wrote:
>     >>>>>>>> Hi Robert,
>     >>>>>>>>
>     >>>>>>>> Hmm, we replaced the CA cert in
>     /etc/grid-security/certificates,
>     >>>>>>>> but didn't restart the daemons: this appeared to fix the
>     problems
>     >>>>>>>> with the voms-proxy-init client. Perhaps it's something
>     in the
>     >>>>>>>> returned proxy chain that crashes it rather than the SSL
>     connection
>     >>>>itself?
>     >>>>>>>>
>     >>>>>>>> (I just tested it now and voms.gridpp.ac.uk
>     <http://voms.gridpp.ac.uk> & voms02.gridpp.ac.uk
>     <http://voms02.gridpp.ac.uk>
>     >>>>>>>> were broken again for me, despite using the sha1 CA for
>     their SSL
>     >>>>>>>> connections (my test client was EL6.9 with UI
>     >>>>>>>>
>     /cvmfs/grid.cern.ch/umd-sl6ui-test/etc/profile.d/setup-ui-
>     <http://grid.cern.ch/umd-sl6ui-test/etc/profile.d/setup-ui->
>     >>>>example.s
>     >>>>>>>> h,
>     >>>>>>>> requesting a gridpp proxy ))
>     >>>>>>>>
>     >>>>>>>> Regards,
>     >>>>>>>> Simon
>     >>>>>>>>
>     >>>>>>>>
>     >>>>>>>> On Wed, Nov 29, 2017 at 05:33:48PM +0000, Robert Frank wrote:
>     >>>>>>>>> Hi Daniela,
>     >>>>>>>>>
>     >>>>>>>>> the daemons on voms03 return a sha256 signed CA cert in
>     the chain:
>     >>>>>>>>>
>     >>>>>>>>> echo "" | openssl s_client -connect
>     voms03.gridpp.ac.uk:15000 <http://voms03.gridpp.ac.uk:15000> -
>     >>>>showcerts 2>/dev/null | sed -n '/^ 1 s:/,/^ 2
>     s:/{/^-----BEGIN/,/^-----
>     >>>>END/p}' | openssl x509 -noout -text | sed -n 's/^\s*Signature
>     >>>>Algorithm:\s*//p'
>     >>>>>>>>> sha256WithRSAEncryption
>     >>>>>>>>> sha256WithRSAEncryption
>     >>>>>>>>>
>     >>>>>>>>> voms02 returns sha1 (and so does voms):
>     >>>>>>>>>
>     >>>>>>>>> echo "" | openssl s_client -connect
>     voms02.gridpp.ac.uk:15000 <http://voms02.gridpp.ac.uk:15000> -
>     >>>>showcerts 2>/dev/null | sed -n '/^ 1 s:/,/^ 2
>     s:/{/^-----BEGIN/,/^-----
>     >>>>END/p}' | openssl x509 -noout -text | sed -n 's/^\s*Signature
>     >>>>Algorithm:\s*//p'
>     >>>>>>>>> sha1WithRSAEncryption
>     >>>>>>>>> sha1WithRSAEncryption
>     >>>>>>>>>
>     >>>>>>>>> I think it's actually good that one of the servers is
>     using the new CA
>     >>>>certificates. Users that use the java voms client (which seems
>     to be the
>     >>>>default nowadays) and already have the new CA certificate can
>     still get
>     >>>>proxies this way. We already had a ticket from a na62 user who
>     couldn't get
>     >>>>a proxy.
>     >>>>>>>>> Yes, most users will be seeing error messages, but the
>     fall-back
>     >>>>should pick one working server.
>     >>>>>>>>>
>     >>>>>>>>> Cheers,
>     >>>>>>>>> Robert
>     >>>>>>>>>
>     >>>>>>>>> On 29/11/17 16:51, Daniela Bauer wrote:
>     >>>>>>>>>> Are you sure any of the vomsserevrs still have the new
>     cert on ?
>     >>>>>>>>>> voms03 certainly doesn't and I'm (almost) sure neither
>     does the
>     >>>>>>>>>> Manchester one. I couldn't just put a GridPP Brexit on  my
>     >>>>conscience.
>     >>>>>>>>>>
>     >>>>>>>>>> Regards,
>     >>>>>>>>>> Daniela
>     >>>>>>>>>>
>     >>>>>>>>>> On 29 November 2017 at 16:38, Jensen, Jens (STFC,RAL,SC) <
>     >>>>>>>>>> [log in to unmask] <mailto:[log in to unmask]>>
>     wrote:
>     >>>>>>>>>>
>     >>>>>>>>>>> Just to follow up on this, I happened to be in a call with
>     >>>>>>>>>>> Mischa from NIKHEF earlier today and we took some time
>     after
>     >>>>the
>     >>>>>>>>>>> call to discuss this peculiar problem. Mischa says he can
>     >>>>>>>>>>> replicate the problem - although he is not a member of a
>     >>>>>>>>>>> GridPP-hosted VO, he can contact the VOMS server and
>     trigger
>     >>>>the error in the client.
>     >>>>>>>>>>>
>     >>>>>>>>>>> It seems to be due to an ancient BouncyCastle library
>     (1.46) on
>     >>>>>>>>>>> SL6, as Steve also mentioned in the call this morning.
>     >>>>>>>>>>>
>     >>>>>>>>>>> Unfortunately Mischa says it's not possible to backport a
>     >>>>>>>>>>> working BC library because they make a lot of incompatible
>     >>>>changes between releases.
>     >>>>>>>>>>>
>     >>>>>>>>>>> Curiously, I just set up an SL6 (6.9) box in the cloud
>     and I
>     >>>>>>>>>>> cannot replicate the error. What am I missing?  This
>     is using Java
>     >>>>1.7.0 and UMD3.
>     >>>>>>>>>>>
>     >>>>>>>>>>> [jj47@vm102 ~]$ rpm -qa|grep igtf
>     >>>>>>>>>>> ca_policy_igtf-iota-1.88-1.noarch
>     >>>>>>>>>>> ca_policy_igtf-slcs-1.88-1.noarch
>     >>>>>>>>>>> ca_policy_igtf-classic-1.88-1.noarch
>     >>>>>>>>>>> ca_policy_igtf-mics-1.88-1.noarch
>     >>>>>>>>>>> [jj47@vm102 ~]$ rpm -qa|grep bouncy
>     >>>>>>>>>>> bouncycastle-1.46-1.el6.noarch
>     >>>>>>>>>>> bouncycastle-mail-1.46-2.el6.noarch
>     >>>>>>>>>>> [jj47@vm102 ~]$ voms-proxy-destroy
>     >>>>>>>>>>> [jj47@vm102 ~]$ voms-proxy-init3 -voms gridpp -vomses
>     >>>>>>>>>>> /etc/vomses/gridpp-voms02.gridpp.ac.uk
>     <http://gridpp-voms02.gridpp.ac.uk>
>     >>>>>>>>>>> Enter GRID pass phrase for this identity:
>     >>>>>>>>>>> Contacting voms02.gridpp.ac.uk:15000
>     <http://voms02.gridpp.ac.uk:15000>
>     >>>>>>>>>>>
>     >>>>[/C=UK/O=eScience/OU=Oxford/L=OeSC/CN=voms02.gridpp.ac.uk
>     <http://voms02.gridpp.ac.uk>]
>     >>>>"gridpp"...
>     >>>>>>>>>>> Remote VOMS server contacted succesfully.
>     >>>>>>>>>>>
>     >>>>>>>>>>>
>     >>>>>>>>>>> Created proxy in /tmp/x509up_u500.
>     >>>>>>>>>>>
>     >>>>>>>>>>> Your proxy is valid until Thu Nov 30 04:24:25 GMT 2017
>     >>>>>>>>>>> [jj47@vm102 ~]$ voms-proxy-destroy
>     >>>>>>>>>>> [jj47@vm102 ~]$ voms-proxy-init3 -voms gridpp -vomses
>     >>>>>>>>>>> /etc/vomses/gridpp-voms.gridpp.ac.uk
>     <http://gridpp-voms.gridpp.ac.uk>
>     >>>>>>>>>>> Enter GRID pass phrase for this identity:
>     >>>>>>>>>>> Contacting voms.gridpp.ac.uk:15000
>     <http://voms.gridpp.ac.uk:15000>
>     >>>>>>>>>>>
>     >>>>[/C=UK/O=eScience/OU=Manchester/L=HEP/CN=voms.gridpp.ac.uk
>     <http://voms.gridpp.ac.uk>]
>     >>>>"gridpp"...
>     >>>>>>>>>>> Remote VOMS server contacted succesfully.
>     >>>>>>>>>>>
>     >>>>>>>>>>>
>     >>>>>>>>>>> Created proxy in /tmp/x509up_u500.
>     >>>>>>>>>>>
>     >>>>>>>>>>> Your proxy is valid until Thu Nov 30 04:24:52 GMT 2017
>     >>>>>>>>>>> [jj47@vm102 ~]$ voms-proxy-destroy
>     >>>>>>>>>>> [jj47@vm102 ~]$ voms-proxy-init3 -voms gridpp -vomses
>     >>>>>>>>>>> /etc/vomses/gridpp-voms03.gridpp.ac.uk
>     <http://gridpp-voms03.gridpp.ac.uk>
>     >>>>>>>>>>> Enter GRID pass phrase for this identity:
>     >>>>>>>>>>> Contacting voms03.gridpp.ac.uk:15000
>     <http://voms03.gridpp.ac.uk:15000>
>     >>>>>>>>>>>
>     >>>>[/C=UK/O=eScience/OU=Imperial/L=Physics/CN=voms03.gridpp.ac.uk
>     <http://voms03.gridpp.ac.uk>]
>     >>>>>>>>>>> "gridpp"...
>     >>>>>>>>>>> Remote VOMS server contacted succesfully.
>     >>>>>>>>>>>
>     >>>>>>>>>>>
>     >>>>>>>>>>> Created proxy in /tmp/x509up_u500.
>     >>>>>>>>>>>
>     >>>>>>>>>>> Your proxy is valid until Thu Nov 30 04:29:27 GMT 2017
>     >>>>>>>>>>>
>     >>>>>>>>>>> [jj47@vm102 ~]$ voms-proxy-info -all subject   :
>     >>>>>>>>>>> /C=UK/O=eScience/OU=CLRC/L=RAL/CN=jens sha2
>     >>>>>>>>>>> jensen/CN=198921768
>     >>>>>>>>>>> issuer    : /C=UK/O=eScience/OU=CLRC/L=RAL/CN=jens sha2
>     >>>>jensen
>     >>>>>>>>>>> identity  : /C=UK/O=eScience/OU=CLRC/L=RAL/CN=jens sha2
>     >>>>jensen
>     >>>>>>>>>>> type      : RFC3820 compliant impersonation proxy
>     strength  :
>     >>>>>>>>>>> 1024 path      : /tmp/x509up_u500 timeleft  : 11:53:48
>     key usage
>     >>>>>>>>>>> : Digital Signature, Key Encipherment, Data
>     Encipherment === VO
>     >>>>>>>>>>> gridpp extension information === VO        : gridpp
>     subject   :
>     >>>>>>>>>>> /C=UK/O=eScience/OU=CLRC/L=RAL/CN=jens sha2 jensen
>     >>>>issuer    :
>     >>>>>>>>>>>
>     >>>>/C=UK/O=eScience/OU=Imperial/L=Physics/CN=voms03.gridpp.ac.uk
>     <http://voms03.gridpp.ac.uk>
>     >>>>>>>>>>> attribute : /gridpp/Role=NULL/Capability=NULL timeleft  :
>     >>>>>>>>>>> 11:53:48 uri       : voms03.gridpp.ac.uk:15000
>     <http://voms03.gridpp.ac.uk:15000>
>     >>>>>>>>>>>
>     >>>>>>>>>>
>     >>>>>>>>>>
>     >>>>>>>>>>
>
>
>
>
> -- 
> Sent from the pit of despair
>
> -----------------------------------------------------------
> [log in to unmask] <mailto:[log in to unmask]>
> HEP Group/Physics Dep
> Imperial College
> London, SW7 2BW
> Tel: +44-(0)20-75947810
> http://www.hep.ph.ic.ac.uk/~dbauer/
> <http://www.hep.ph.ic.ac.uk/%7Edbauer/>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager