Title: An X509 peer should support RPK too · Issue #2145 · bcgit/bc-java · GitHub
Open Graph Title: An X509 peer should support RPK too · Issue #2145 · bcgit/bc-java
X Title: An X509 peer should support RPK too · Issue #2145 · bcgit/bc-java
Description: In my case I have a DTLS server (using bouncy castle low level API), which need to support PSK, RPK and X509. A peer which support X509 could support RPK too. Of course, it should be possible to configure that peer in a way it only accep...
Open Graph Description: In my case I have a DTLS server (using bouncy castle low level API), which need to support PSK, RPK and X509. A peer which support X509 could support RPK too. Of course, it should be possible to co...
X Description: In my case I have a DTLS server (using bouncy castle low level API), which need to support PSK, RPK and X509. A peer which support X509 could support RPK too. Of course, it should be possible to co...
Opengraph URL: https://github.com/bcgit/bc-java/issues/2145
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"An X509 peer should support RPK too","articleBody":"[In my case](https://github.com/bcgit/bc-java/discussions/2075) I have a DTLS server (using bouncy castle low level API), which need to support PSK, RPK and X509.\n\nA peer which support X509 could support RPK too.\nOf course, it should be possible to configure that peer in a way it only accept X509.\n\nCurrently, it seems there is a bug (or missing feature) which prevent to create a server which accept both.\n\nA comment in the code seems to confirm that: \nhttps://github.com/bcgit/bc-java/blob/0e100a58af34d0cf91ea5cfd1f0a6d36681c3653/tls/src/main/java/org/bouncycastle/tls/AbstractTlsServer.java#L605-L606\n\n\nMaybe it make sense to try to find supported Server Certificate Type based on getCredentials() but in case this is X509 certificate, maybe RPK should be added too by default ? \n\nMaybe we should have a getSupportedServerCertificateTypes() in AbstractTlsServer with default implementation based on `getCredentials`, so it would be easy to override it change default behavoir.\n\n(Bonus question, as there is not so much documentation, it is often hard to know what is expected when implementing BC interface/abstract class, typically for getCredentials() should I a create a BcDefaultTlsCredentialedSigner on each call ? I guess at least 1 by handshake and so it should be simpler if getCredentials was called only 1 time by handshake ? currently it is called twice, 1 time to get Server Certificate Type and one time to store it `ServerHandshakeState.serverCredentials`)","author":{"url":"https://github.com/sbernard31","@type":"Person","name":"sbernard31"},"datePublished":"2025-08-12T10:02:10Z","url":"https://github.com/bcgit/bc-java/issues/2145"}
| 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:c6bebb87-9bef-2d05-e76b-3f96876c8f9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A74:123E7D:24105:31812:6AFBF6CC |
| html-safe-nonce | 0022733805e93a916adf3681f7cba971122a73f51fe5cc810858f10aeff7760e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTc0OjEyM0U3RDoyNDEwNTozMTgxMjo2QUZCRjZDQyIsInZpc2l0b3JfaWQiOiI0MTEyNTk2NTc4MzE1NTMxOTgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 225eb76e3d23ba942561849ee68de1432456346f4facf102bd19bc3d74d7f988 |
| hovercard-subject-tag | issue:3313503797 |
| 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/2145/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbf3ed657e4bce038b7e48411dab5163edc006f544648d6bb732423b2ea8671f/bcgit/bc-java/issues/2145 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbf3ed657e4bce038b7e48411dab5163edc006f544648d6bb732423b2ea8671f/bcgit/bc-java/issues/2145 |
| og:image:alt | In my case I have a DTLS server (using bouncy castle low level API), which need to support PSK, RPK and X509. A peer which support X509 could support RPK too. Of course, it should be possible to co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sbernard31 |
| 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