Error: HTTPS hostname wrong

1,003 views
Skip to first unread message

Mickael Escudero

unread,
Mar 19, 2015, 12:10:48 PM3/19/15
to igv-...@googlegroups.com
Hello,

Recently when trying to load an IGV session from a URL using https I get the following error:

java.io.IOException: HTTPS hostname wrong: should be <myserver.org>

I have done a few tests, the problem seems to be OS independent and to appear with java 1.8 but not java 1.7

Has anyone come across this or know how to fix it?
I'm guessing it has something to do either with the SSL certificate of the server or with my institute's proxy that redirects to the server (my server has recently been re-routed through a new proxy)


Cheers,
Mickael

Mickael

unread,
Mar 20, 2015, 5:30:58 AM3/20/15
to igv-...@googlegroups.com
Forgot to precise, I'm using IGV Version 2.3.46

Jim Robinson

unread,
Mar 20, 2015, 9:19:30 AM3/20/15
to igv-...@googlegroups.com
Hi,
This does look like a certificate problem, but I am not able to reproduce it.  IGV does not validate certificates or host names,  it accepts them all.    Could you possibly point me to a server causing the problem,  or try loading this using "load from URL" and tell me if you get the same error?

https://1000genomes.s3.amazonaws.com/data/HG01879/alignment/HG01879.mapped.ILLUMINA.bwa.ACB.low_coverage.20120522.bam
--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/af580df8-71c5-4286-801b-80893a2fb0c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mickael

unread,
Mar 20, 2015, 10:39:57 AM3/20/15
to igv-...@googlegroups.com
Hi,

The link you gave me works fine.
I'm guessing the problem does not come from IGV but from the fact that java 1.8 has got a higher security level by default.
Here's a link from my institute that used to work but does not anymore when using "load from URL". I removed the lines loading sensitive data so this session file only loads a genome.

Jim Robinson

unread,
Mar 20, 2015, 10:44:41 AM3/20/15
to igv-...@googlegroups.com
OK, thanks, I am able to reproduce the problem with that link.   I will investigate solutions.   Does that site have a valid certificate for the host name bioinformatics.cancerresearchuk.org?

Mickael

unread,
Mar 20, 2015, 10:56:33 AM3/20/15
to igv-...@googlegroups.com
My server has got a valid SSL certificate for bioinformatics.cancerresearchuk.org yes.
One of my colleagues, using such a link, got an extra error message with the following:

- Expecting "*.crick.ac.uk"

crick.ac.uk is the default domain for the new proxy set up by my institute's IT department just before this problem started to occur. So far my guess is that the problem is caused by the discrepancy between the domain given in the link and the domain returned by this proxy re-routing the traffic towards my server, but it's probably not that simple.

Jim Robinson

unread,
Mar 20, 2015, 10:59:06 AM3/20/15
to igv-...@googlegroups.com
Was your colleagues download through IGV, a web browser, or some other
tool?

Jim

Mickael

unread,
Mar 20, 2015, 11:04:14 AM3/20/15
to igv-...@googlegroups.com
It was using IGV (screenshot attached).
Accessing those files through a web browser works fine, and does not rise a certificate warning.
InvalidCertificate.png

Jim Robinson

unread,
Mar 20, 2015, 11:05:58 AM3/20/15
to igv-...@googlegroups.com
OK, keep the test file up.   This might take some time.   
--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.

Mickael

unread,
Mar 20, 2015, 11:10:38 AM3/20/15
to igv-...@googlegroups.com
Yes no worries. Thanks for looking into that :-)

Jim Robinson

unread,
Mar 20, 2015, 1:51:46 PM3/20/15
to igv-...@googlegroups.com
Hi,  I think this is fixed.  Could you try the "snapshot" build and verify it?  You can download it from

http://www.broadinstitute.org/software/igv/download_snapshot

Thanks

Jim

Mickael

unread,
Mar 23, 2015, 4:23:57 AM3/23/15
to igv-...@googlegroups.com
Hi Jim,

I just tried and I now get a different error:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching bioinformatics.cancerresearchuk.org found.

Jim Robinson

unread,
Mar 23, 2015, 7:57:51 AM3/23/15
to igv-...@googlegroups.com
Apologies, that doesn't happen in my development environment but I see
it now. That's a different error, investigating.

Jim Robinson

unread,
Mar 23, 2015, 11:53:23 AM3/23/15
to igv-...@googlegroups.com
OK, ready to try again (snapshot).

Jim

Mickael

unread,
Mar 23, 2015, 12:03:05 PM3/23/15
to igv-...@googlegroups.com
Hi Jim,

It seems to work indeed, thank you so much :-) 
What was the problem and how did you fix it?

Jim Robinson

unread,
Mar 23, 2015, 12:25:11 PM3/23/15
to igv-...@googlegroups.com
The latest error occurred because I had disabled java's "SNIExtension" in response to another ticket.  Obviously that was a bad idea.   The original problem was caused by SSL workarounds for some Java issues in JDK 1.7 and earlier.    Those workarounds aren't needed in Java 1.8,  and in fact lead to the error you experienced.

So the bottom line is Java 8 seems to have fixed some longstanding SSL issues, and previous hacks should be removed.   In the IGV code there is an "is Java 8" type test that does that.

You can browse the git commits if you want more details.

Jim

Reply all
Reply to author
Forward
0 new messages