Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] jetty-maven-plugin: minimal HTTPS example?
  • From: Jeroen Hoek <jeroen.hoek@xxxxxxxx>
  • Date: Thu, 20 Aug 2020 14:43:09 +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,

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


Back to the top