Title: Client side SNI extension when using BCJSSE · Issue #660 · bcgit/bc-java · GitHub
Open Graph Title: Client side SNI extension when using BCJSSE · Issue #660 · bcgit/bc-java
X Title: Client side SNI extension when using BCJSSE · Issue #660 · bcgit/bc-java
Description: BCJSSE doesn't add client side SNI in ClientHello. Some public servers reject such requests with alert 40. We used a Cloudflare-hosted service that rejected Java client (HttpsURLConnection) originated connection. We have configured BCJSS...
Open Graph Description: BCJSSE doesn't add client side SNI in ClientHello. Some public servers reject such requests with alert 40. We used a Cloudflare-hosted service that rejected Java client (HttpsURLConnection) origina...
X Description: BCJSSE doesn't add client side SNI in ClientHello. Some public servers reject such requests with alert 40. We used a Cloudflare-hosted service that rejected Java client (HttpsURLConnection) ori...
Opengraph URL: https://github.com/bcgit/bc-java/issues/660
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client side SNI extension when using BCJSSE","articleBody":"BCJSSE doesn't add client side SNI in ClientHello. Some public servers reject such requests with alert 40. We used a Cloudflare-hosted service that rejected Java client (HttpsURLConnection) originated connection. We have configured BCJSSE as default JSSE provider. I read the BCTLS guide and used the workaround from section 3.2.5 to inject SNI which resolved the issue, however we are in control of this particular code, there are other places where similar calls are initiated from 3rd party libraries that are not under our control.\r\n\r\nI was wondering why BCJSSE doesn't add SNI automatically. The guide states:\r\n\r\n> Endpoint identification was introduced in 1.0.7 in a manner that tried to be as compatible with\r\nSunJSSE as possible. Unfortunately, when using HttpsURLConnection SunJSSE uses some magic \r\n(reflection and/or internal API) to tell the socket about the \"original hostname\" used for the\r\nconnection, and we cannot use that same magic as it is internal to the JVM.\r\n\r\nI do see in ProvSSLSocketDirect.notifyConnected() a call:\r\nInetAddress peerAddress = getInetAddress();\r\n...\r\nthis.peerHost = peerAddress.getHostName();\r\n\r\nCan BCTLS use peerHost that is already resolved to add SNI when sending ClientHello?","author":{"url":"https://github.com/gstanchev","@type":"Person","name":"gstanchev"},"datePublished":"2020-02-19T15:51:59Z","url":"https://github.com/bcgit/bc-java/issues/660"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e9573018-5c4f-e05c-c1a5-abd3596f1498 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A058:2C32AA:2918DA:381BF9:6AFC02AD |
| html-safe-nonce | 639d852e067ab0eb0c2aee5ede66abf871731d5556336fe661cd801ee659027f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDU4OjJDMzJBQToyOTE4REE6MzgxQkY5OjZBRkMwMkFEIiwidmlzaXRvcl9pZCI6IjcyOTEwNTQ0MDIzNjQ1MDY3OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 715fdc95bb5401d181bc3a659bd3bd51b6d5c693ff0c1125666423ff1678f3d5 |
| hovercard-subject-tag | issue:567648333 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bcgit/bc-java/660/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad66f9dd09d8c6c085881e3adaa7af7d7b561e9c3ad1e97515f8f3ddca74e116/bcgit/bc-java/issues/660 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad66f9dd09d8c6c085881e3adaa7af7d7b561e9c3ad1e97515f8f3ddca74e116/bcgit/bc-java/issues/660 |
| og:image:alt | BCJSSE doesn't add client side SNI in ClientHello. Some public servers reject such requests with alert 40. We used a Cloudflare-hosted service that rejected Java client (HttpsURLConnection) origina... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gstanchev |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-preview |
| go-import | github.com/bcgit/bc-java git https://github.com/bcgit/bc-java.git |
| octolytics-dimension-user_id | 4566970 |
| octolytics-dimension-user_login | bcgit |
| octolytics-dimension-repository_id | 10416648 |
| octolytics-dimension-repository_nwo | bcgit/bc-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 10416648 |
| octolytics-dimension-repository_network_root_nwo | bcgit/bc-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width