Re: error adding commerce vocab to LOV

On 01/15/2015 09:22 AM, Melvin Carvalho wrote:
> Hi Manu & all
> 
> I got the following error adding the commerce vocabulary to linked open
> vocabs ... any thoughts?
> 
> ssl.SSLException: hostname in certificate didn't match:
> *<web-payments.org <http://web-payments.org>> != <payswarm.com
> <http://payswarm.com>> OR <payswarm.com <http://payswarm.com>> OR
> <www.payswarm.com <http://www.payswarm.com>>*
> 
> http://lov.okfn.org/dataset/lov/suggest?q=https%3A%2F%2Fw3id.org%2Fcommerce

My guess would be that that Java client isn't configured to or doesn't
support SNI (Server Name Indication). It should, since just about every
common SSL client does and it's a common expectation.

I'd guess the default certificate that is returned from the server
running web-payments.org is a payswarm SSL cert -- but if SNI is used,
you'll get the proper web-payments.org cert. You can verify this in your
browser by hitting the same URL.


> 
> An error occurred:
> 
> org.apache.jena.atlas.AtlasException: javax.net.ssl.SSLException:
> hostname in certificate didn't match: <web-payments.org
> <http://web-payments.org>> != <payswarm.com <http://payswarm.com>> OR
> <payswarm.com <http://payswarm.com>> OR <www.payswarm.com
> <http://www.payswarm.com>> at
> org.apache.jena.atlas.io.IO.exception(IO.java:199) at
> org.apache.jena.riot.web.HttpOp.execHttpGet(HttpOp.java:179) at
> org.apache.jena.riot.stream.LocatorURL.open(LocatorURL.java:47) at
> org.apache.jena.riot.stream.StreamManager.openNoMapOrNull(StreamManager.java:124)
> at org.apache.jena.riot.stream.StreamManager.open(StreamManager.java:81)
> at org.apache.jena.riot.RDFDataMgr.open(RDFDataMgr.java:725) at
> org.apache.jena.riot.RDFDataMgr.open(RDFDataMgr.java:714) at
> org.apache.jena.riot.RDFDataMgr.parse(RDFDataMgr.java:649) at
> org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:211) at
> org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:104) at
> org.apache.jena.riot.RDFDataMgr.read(RDFDataMgr.java:95) at
> org.apache.jena.riot.RDFDataMgr.loadModel(RDFDataMgr.java:331) at
> org.lov.LovBotVocabAnalyser.analyse(LovBotVocabAnalyser.java:58) at
> org.lov.LovBotVocabAnalyser.analyseVocabURI(LovBotVocabAnalyser.java:48)
> at org.lov.cli.Suggest.exec(Suggest.java:71) at
> arq.cmdline.CmdMain.mainMethod(CmdMain.java:101) at
> arq.cmdline.CmdMain.mainRun(CmdMain.java:63) at
> arq.cmdline.CmdMain.mainRun(CmdMain.java:50) at
> org.lov.cli.Suggest.main(Suggest.java:27) Caused by:
> javax.net.ssl.SSLException: hostname in certificate didn't match:
> <web-payments.org <http://web-payments.org>> != <payswarm.com
> <http://payswarm.com>> OR <payswarm.com <http://payswarm.com>> OR
> <www.payswarm.com <http://www.payswarm.com>> at
> org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:227)
> at
> org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)
> at
> org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:147)
> at
> org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
> at
> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572)
> at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
> at
> org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
> at
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
> at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
> at org.apache.jena.riot.web.HttpOp.execHttpGet(HttpOp.java:148) ... 17 more
> 
> 


-- 
Dave Longley
CTO
Digital Bazaar, Inc.

Received on Thursday, 15 January 2015 18:56:21 UTC