Commit 3d279b0
committed
docs: add complete mTLS section with Go and Java examples
Add a comprehensive Mutual TLS (mTLS) section to the Configure TLS documentation
covering all three mTLS modes with Go and Java examples:
1. In-memory PEM bytes (static, no reload)
- Go: WithMutualTLS(cert, key)
- Java: useMutualTls(byte[], byte[])
2. Path-based with default reload (300 seconds)
- Go: WithMutualTLSFromFiles(certPath, keyPath)
- Java: useMutualTlsWithReload(certPath, keyPath)
3. Path-based with custom reload interval
- Go: WithMutualTLSFromFiles() with WithReloadInterval(d)
- Java: useMutualTlsWithReload(certPath, keyPath, intervalSecs)
Also includes helper methods example (LoadClientCertificateAndKeyFromFile in both
languages) and a comprehensive Common Pitfalls section addressing file permissions,
reload cadence semantics, mode exclusivity, interval validation, and the requirement
for use_tls=True.
Python, Node.js, C#, and PHP tabs remain "Coming soon" pending their implementation.1 parent bc881f5 commit 3d279b0
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
607 | 607 | | |
608 | | - | |
609 | | - | |
| 608 | + | |
| 609 | + | |
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
| 654 | + | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
| 751 | + | |
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| |||
0 commit comments