Comments (2)
After look the source code
trantor/trantor/net/inner/TcpConnectionImpl.cc
Line 1966 in c1e57a0
there is no way for the server check if the client sent a valid certificate and read the CA file (SSL_CTX_set_client_CA_list(ctx, SSL_load_client_CA_file(caFile));). A param or method to enable the server to check the client SSL certificate will be a very useful. Is there a way to add this functionality?
References
https://www.openssl.org/docs/manmaster/man3/SSL_CTX_use_certificate.html
If additional certificates are needed to complete the chain during the TLS negotiation, CA certificates are additionally looked up in the locations of trusted CA certificates, see SSL_CTX_load_verify_locations(3).
https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_client_CA_list.html
from trantor.
Well it's still not the final version, but i'm now using mTLS :D
from trantor.
Related Issues (20)
- Define Socket Options, instead of writing a method to each one HOT 1
- TcpConnectionImpl.cc logs the connections aborted by a client as an unexpected error
- fix microseconds leading zeroes
- Build Error HOT 1
- Build Error HOT 1
- TLS: FATAL Transport endpoint is not connected (errno=107) sockets::shutdownWrite - Socket.cc:110 HOT 10
- Using Botan as TLS provider does not work
- Build error HOT 1
- Build error with Clang 16
- MessageCallback is not work while TcpClient continue sending tcp message HOT 1
- botan build error in macos HOT 6
- OpenSSL TLS provider not working correctly HOT 25
- HashUnitTest Hash5 Hash256 Faild HOT 2
- FATAL no writing but write callback called - TcpConnectionImpl.cc:328 HOT 5
- `trantor::ConcurrentTaskQueue::runTaskInQueue` hangs indefinitely HOT 1
- Assertion `ssl_' failed HOT 3
- How do I use other types of key certificates in the setCertPath method
- Macro conflicts with LOG_* HOT 1
- Fails to build with current c-ares HOT 2
- Trantor should not install CMake find modules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trantor.