Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] jetty-maven-plugin: minimal HTTPS example?
  • From: Jeroen Hoek <jeroen.hoek@xxxxxxxx>
  • Date: Mon, 24 Aug 2020 09:27:24 +0200
  • Autocrypt: addr=jeroen.hoek@xxxxxxxx; prefer-encrypt=mutual; keydata= xsBNBFSn4+0BCADPLues1DGquSxpId4Xioi4oeEZNu8vyB6ZpWv93INlj/o47sta5qEtH/Wm 9MBDBkTmQo4aEEF6/JmO58VqapPSxqN09pl0EZezrDTGleyKiGCaU1GFImgNRTEDun0JrzsO m0HgXYArdhm0POx61sBWVExz0CoZSWihmd+YJXI+kMpUlbEisiDjSPCDfbO6sm+6gmZI9SFT j6egLBb/xwa0eLnQ7SMIq2Os5uGGzBQI0oo3paFuOAj59kIsFJ3knMLpUI7EvEmaNDzYMcBG 0yAxxaBN40zQVKWKBrZ2ALKxy1iJ6IKgCfXKTJa2Y0J3r2DwyPexAx4/zjX+X9pqwGNLABEB AAHNIkplcm9lbiBIb2VrIDxqZXJvZW4uaG9la0BsYWJsZS5ubD7CwHcEEwEIACEFAlTsdVgC GwMFCwkIBwMFFQoJCAsFFgIDAQACHgECF4AACgkQp6i5E9QN0CIDPQf9EmuBcYYVvE8xCMBf WdgZ+j38cBhXVhbouvG6DYddv72lDz8J3L4u3lD5p+mYo2toSVQHDUCcOK28D0U0dUnBsaek A0TSq1ZAdxZbWJGSl5BPqUxk4C8JA9AgRpwSOIl3Tvcf8fBBWfQnBYeUO0yfib4LbFtQAnEz JBKSGOHRpU5OqnZCgGQlTaBEEBwxC8JpOQ6KKuHJ66SmsNbWxGFxOcVI9IB3Nt2OKl7HEsL4 zLsM4+2UnKLWI0pYAhxGFVrW2FdjzzeNujwz/xZWElR2y+l3xGFYbBZNrK4ZRrQrMua5wu2M pN08T1Du8Z4+6gYYLQWIivYQSL4kzHMki261hM7ATQRUp+PtAQgAtG3E2nxFSVXD8g5hXA5o yO5lAcL3YOaoApVhlyXS/I9C4/SZJNSDJ0o72lryPRgQFPhCgigfZuE8ayt3kF3zzrMwNpjG KsyaOxKW8s9fjm8OBeRxjOc7uMTA/PMgAYr3CjGDivUiNqFSnKDh1y7zIG1R7rixEBsssS4z YY74yDy3I9OQavJA+ofiIPaHwA/7sVpE1YfmUibB4bYoL97oCnib/8Fk1oOqnoT4A33VJIe/ VcyFCSXa+XjebzXP9T5spc6NhG0R8nXEjGWOuiNPtO8RuHVUqMD8qW1w0bmVKmOsCY39SOuc yLKOW97FZaLlLt8FB/WczCQXpFUQgKY1swARAQABwsBfBBgBCAAJBQJUp+PtAhsMAAoJEKeo uRPUDdAihMgIAKOY870KOeD4fWL6XMbmu+tO8qUTofMKrpSz3EksY6XjXc99UQTvII/eWSxo IAyDchxvsBaYbQoEw1mz+lb5tubTB3lOlepqbI7Ar2s+X4wlGYzXfnjUbaO5lSzOxQjBuRKf LkvG6p2/c7Q5TdrtQoMwVHTR2CIbkYUgNKuW37Zg5pgrGu7LkDmB4Kehcp9OCds4VJ+PLwdX 6OO09Hy+cbS+SzAYQ82Gqc6DENt+RjTzoGw8qIENYKRj6lWZ1SdPcSKGgdemoJXudt5kpmBT 7hsM0x6bbjHzPucpuu5tCOa5auu/chFPaeHlMhl1wHGPcp/oib5gd/nqs50olTizbAc=
  • Delivered-to: jetty-users@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jetty-users>
  • List-help: <mailto:jetty-users-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=unsubscribe>
  • Organization: Lable
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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 <jeroen.hoek@xxxxxxxx
> <mailto:jeroen.hoek@xxxxxxxx>> 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
>     jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>
>     To unsubscribe from this list, visit
>     https://www.eclipse.org/mailman/listinfo/jetty-users
> 
> 
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
> 

-- 
Vriendelijke groeten,

Jeroen Hoek

Lable
✉ jeroen.hoek@xxxxxxxx
℡ 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


Back to the top