Hello Lachlan,

Thank you very much! Your example gave me just the help I needed to find
the problem in my code.

The diff that makes my example work:

https://github.com/LableOrg/jetty-maven-ssl/commit/d21f7e6b4cceac471db564a22e6c80b333265b4a

I think what got me stuck was that the part about the sslContextFactory
is missing from this page:

https://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html

Would a PR adding a bit about jetty-ssl-context.xml to the 'Configuring
a Https Connector' heading be welcome?

Kind regards,

Jeroen

On 21-08-2020 06:19, Lachlan Roberts wrote:
> HI Jeroen,
> 
> I have set up a basic project which works with HTTPS and with your
> keystore. You can look at this to get some idea why yours isn't working.
> https://github.com/lachlan-roberts/jetty-maven-plugin-https-example
> 
> Cheers,
> Lachlan
> 
> On Thu, Aug 20, 2020 at 10:43 PM Jeroen Hoek <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hello,
> 
>     I am trying to get the jetty-maven-plugin working with HTTPS, but am
>     running into an issue with the certificate not working.
> 
>     I've found a Maven archetype that sets up a minimal Maven project with
>     the plugin without HTTPS (this works), and have tried to switch from
>     HTTP to HTTPS by following the Jetty documentation. I'm not sure if I've
>     done everything right though.
> 
>     When I run `mvn jetty:run` the server starts on port 8443, but attempts
>     to connect fail:
> 
>     * In Firefox, I get:
>         Error code: SSL_ERROR_RX_RECORD_TOO_LONG
>     * With curl, I get:
>         error:1408F10B:SSL routines:ssl3_get_record:wrong version number
> 
>     Here is my minimal example:
> 
>     https://github.com/LableOrg/jetty-maven-ssl
> 
>     I used keytool (JDK 11) to generate this specific certificate, but have
>     tried to use an existing certificate that works with
>     tomcat7-maven-plugin as well. Both give the same errors.
> 
>     Could someone point me in the right direction? Or is there a minimal
>     Maven project example with working HTTPS I can examine?
> 
>     Kind regards,
> 
>     Jeroen Hoek
>     _______________________________________________
>     jetty-users mailing list
>     [email protected] <mailto:[email protected]>
>     To unsubscribe from this list, visit
>     https://www.eclipse.org/mailman/listinfo/jetty-users
> 
> 
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/jetty-users
> 

-- 
Vriendelijke groeten,

Jeroen Hoek

Lable
✉ [email protected]
℡ 088 44 20 202
GPG-sleutel: 44D4 1D39 535A 1F9A 9509  92C5 A7A8 B913 D40D D022

https://lable.nl — KvK № 55984037 — BTW № NL8519.32.411.B.01
_______________________________________________
jetty-users mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to