Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javax.net.ssl.SSLException: Server key #13

Closed
ikuraj opened this issue Aug 31, 2013 · 11 comments
Closed

javax.net.ssl.SSLException: Server key #13

ikuraj opened this issue Aug 31, 2013 · 11 comments

Comments

@ikuraj
Copy link

ikuraj commented Aug 31, 2013

Not sure if I did something wrong or there is an issue with the plugin. Note that I get the output:

[info] Passed: : Total 164, Failed 0, Errors 0, Passed 161, Skipped 3

scct: [InSynth] Generating coverage report.

[success] Total time: 98 s, completed Aug 31, 2013 11:25:03 PM

javax.net.ssl.SSLException: Server key

at sun.security.ssl.Handshaker.throwSSLException(Handshaker.java:1274)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
...
Caused by: java.security.spec.InvalidKeySpecException: Could not create EC public key at sun.security.pkcs11.P11ECKeyFactory.engineGeneratePublic(P11ECKeyFactory.java:169)
at java.security.KeyFactory.generatePublic(KeyFactory.java:334)
at sun.security.ssl.Handshakessage$ECDH_ServerKeyExchange.<init>(Handshakessage.java:1057)
...

from both the Travis build and manual build (with the repo token specified).

The repo in question can be found here.

@theon
Copy link
Owner

theon commented Sep 2, 2013

Thanks for raising this. This was actually happening to me too, but I forgot to make a ticket. Here is a build it happened for me.

It only happens with open JDK and not with oracle JDK. I should be able to do some research and look at fixing it wednesday evening.

@theon
Copy link
Owner

theon commented Sep 2, 2013

Looks like it could be a bug with the Ubuntu open JDK. Are you using Ubuntu?

@ikuraj
Copy link
Author

ikuraj commented Sep 2, 2013

That is actually true. I setup my Travis builds to use both JDKs and Oracle's one passed successfully.

Travis uses: Using worker: worker-linux-2-1.bb.travis-ci.org:travis-linux-17 (not sure whether it is Ubuntu)
I use Linux Mint: Linux Nebuchadnezzar 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

@theon
Copy link
Owner

theon commented Sep 3, 2013

Looks like it Linux Mint and travis are both Ubuntu based.

Travis CI virtual machines are based on Ubuntu 12.04 LTS Server Edition 64 bit.


Some of the reasons for the success of Linux Mint are:

  • Based on Debian and Ubuntu

I try out some workarounds tomorrow night. This blog post suggests a fix. Maybe we can get a Travis job to do that in it's before script.

@theon
Copy link
Owner

theon commented Sep 3, 2013

A better option might be this. Could send this as a pull request to scalaj-http

@ikuraj
Copy link
Author

ikuraj commented Sep 3, 2013

so what do we do? I want to build this successfully on Travis :)

@theon
Copy link
Owner

theon commented Sep 3, 2013

I'm going to fix it tomorrow evening :)

I'll publish a new version for you to try then.

@ikuraj
Copy link
Author

ikuraj commented Sep 3, 2013

Cool! 😋 😋

theon pushed a commit that referenced this issue Sep 4, 2013
@theon
Copy link
Owner

theon commented Sep 4, 2013

Could you try upgrading to version 0.0.4-SNAPSHOT. If that works then I will cut a 0.0.4 release.

I've tested it out on this project for which oracle and open jdk are both working again: https://travis-ci.org/theon/scala-uri/builds/10990232

@ikuraj
Copy link
Author

ikuraj commented Sep 4, 2013

It works on my machine:

scct: [InSynth] Generating coverage report.
[success] Total time: 49 s, completed Sep 4, 2013 11:32:06 PM
[info] Uploading to coveralls.io succeeded: Job #15.1
[info] https://coveralls.io/jobs/441901
[info] (results may not appear immediately)
[success] Total time: 52 s, completed Sep 4, 2013 11:32:09 PM

thus I guess it will work from Travis as well.

@theon
Copy link
Owner

theon commented Sep 4, 2013

0.0.4 has been cut!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants