Feasibility to pass Client Certificates through JsonRpcProvider and WebSocketProvider #3644
Replies: 2 comments 1 reply
-
This isn't anything that will be supported in v5, as I'm trying to avoid any new API changes. In v6, you can replace the web fetching APIs with custom ones, using But for example, this is something that cannot be done in a web browser (for security reasons), so it would only affect those using node. It's just something to keep in mind. I'm going to move this to the Ideas Discussion. |
Beta Was this translation helpful? Give feedback.
-
For anyone looking for proxy connections, I have posted the example code which works with V6 #4336 |
Beta Was this translation helpful? Give feedback.
-
Ethers Version
v5.7.2
Search Terms
mutual TLS, client certificates, jsonrpc, websocket
Describe the Problem
I am analyzing to see, if it is feasible to perform mutual TLS with Blockchain Nodes from DApps. From my analysis, for mTLS, it is possible to pass client certificates in JSON RPC Providers and WebSocket Providers in other Ethereum Libraries such as Web3j, Web3.js, etc. For example,
Passing Client Certificates in HTTP Service in Web3j
Passing Client Certificates for WebSockets in Web3j
Similarly in slightly different form and way, Web3.js also has ways to pass client certificates for JSON RPC based Provider and WebSocket provider
From my analysis, it is currently not feasible to pass client certificates in Ethers.js for JSON RPC Provider and WebSocket Provider. Can you please confirm that it is not feasible to pass client certificates in ethers.js currently? If it is feasible, can you please let me know, how to do the same. If it is not feasible yet, is there is a rough timeline on when it would be feasible to do the same in Ethers.js?
Thanks in advance
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions