{"id":22043540,"url":"https://github.com/glenkpeterson/http2-server-jar-sample","last_synced_at":"2026-04-17T12:33:25.446Z","repository":{"id":37262744,"uuid":"212446296","full_name":"GlenKPeterson/http2-server-jar-sample","owner":"GlenKPeterson","description":"Minimal project for reproducing Jetty HTTP/2 kotlin server jar file issues","archived":false,"fork":false,"pushed_at":"2022-07-07T22:10:46.000Z","size":36,"stargazers_count":1,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T21:05:48.610Z","etag":null,"topics":["http2","https","java","jetty","jetty-server","kotlin","tls","tls13"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GlenKPeterson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-02T21:38:19.000Z","updated_at":"2024-06-14T13:35:21.000Z","dependencies_parsed_at":"2022-07-12T05:00:47.210Z","dependency_job_id":null,"html_url":"https://github.com/GlenKPeterson/http2-server-jar-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GlenKPeterson/http2-server-jar-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlenKPeterson%2Fhttp2-server-jar-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlenKPeterson%2Fhttp2-server-jar-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlenKPeterson%2Fhttp2-server-jar-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlenKPeterson%2Fhttp2-server-jar-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GlenKPeterson","download_url":"https://codeload.github.com/GlenKPeterson/http2-server-jar-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlenKPeterson%2Fhttp2-server-jar-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31929741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http2","https","java","jetty","jetty-server","kotlin","tls","tls13"],"created_at":"2024-11-30T12:16:30.970Z","updated_at":"2026-04-17T12:33:25.413Z","avatar_url":"https://github.com/GlenKPeterson.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP/2 Server Jar Sample (in Jetty)\nThis is neither approved nor endorsed by the Jetty project, Eclispe Foundation, or similar.\nIt's just a minimal project for reproducing and solving my personal jetty HTTP/2 issues.\nIt has a very simple HTML5 file hard-coded in the Kotlin code.\n\n## To Build\nRequires:\n* Java (I use openjdk11)\n* Maven\n\nCommand:\n```bash\nmvn clean package\n```\n## To Run\n```text\njava -jar target/ROOT.jar\n```\nor to debug javax.net:\n```text\njava -Djavax.net.debug=all -jar target/ROOT.jar\n```\n\n## Solved Problems:\n1. [Fat jar file doesn't return HTTP responses](problem1.md)\n2. [IE11/Win7 not working with Jetty/Conscrypt/ALPN](problem2.md)\n\n## Extras\n\n### Debugging Jetty\nEdit `src/main/resources/logback.xml` and change `\u003croot level=\"info\"\u003e` to `\u003croot level=\"debug\"\u003e`\n\n### Certificate Creation:\n```bash\nsudo $JAVA_HOME/bin/keytool \\\n    -alias jetty \\\n    -dname \"CN=jettyHttp2Sample.organicdesign.org, OU=Testing, O=OrganicDesign, L=Upstate, ST=South Carolina, C=US\" \\\n    -genkeypair \\\n    -keyalg EC \\\n    -keysize 256 \\\n    -keystore src/main/resources/keystore \\\n    -sigalg SHA256withECDSA \\\n    -storetype pkcs12 \\\n    -validity 1096\n```\n### Test TLS/SSL ciphers\nwith curl (this is what success looks like):\n```bash\n$ curl --insecure https://localhost:8443 -D headers.txt\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003ctitle\u003eTest Page\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003ch1\u003eIt works!\u003c/h1\u003e\n    \u003cp\u003eWorking.\u003c/p\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n\n$ cat headers.txt\nHTTP/2 200\nserver: Jetty(9.4.20.v20190813)\ncontent-type: text/html;charset=utf-8\n```\n\nwith nmap (simple cipher test):\n```bash\nnmap --script ssl-enum-ciphers -p 8443 localhost\n```\n\nwith testssl.sh (detalied cipher test):\n```bash\ntestssl.sh localhost:8443\n```\n\nwith browser: https://localhost:8443/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglenkpeterson%2Fhttp2-server-jar-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglenkpeterson%2Fhttp2-server-jar-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglenkpeterson%2Fhttp2-server-jar-sample/lists"}