mirror of
https://github.com/fosrl/newt.git
synced 2026-03-08 23:03:03 -05:00
[PR #26] [MERGED] Feat: mTLS support #83
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/newt/pull/26
Author: @progressive-kiwi
Created: 3/30/2025
Status: ✅ Merged
Merged: 4/3/2025
Merged by: @oschwartz10612
Base:
dev← Head:feat-mtls-support📝 Commits (7)
623be5eMerge pull request #20 from fosrl/devf4e17a4Merge pull request #22 from fosrl/dev2ff8df9Merge branch 'dev'9b3c826feat/mtls-support435b638feat/mtls-support-cert-scriptb41570efeat/mtls-support-cert: config supportd28e3cafeat/mtls-support-cert: doc update, removing config.Endpoint loading duplicates, handling null-pointer case and some logging📊 Changes
9 files changed (+290 additions, -31 deletions)
View changed files
📝
.gitignore(+4 -1)📝
README.md(+35 -2)📝
go.mod(+1 -0)📝
go.sum(+2 -0)📝
main.go(+25 -13)➕
self-signed-certs-for-mtls.sh(+125 -0)📝
websocket/client.go(+90 -11)📝
websocket/config.go(+3 -0)📝
websocket/types.go(+5 -4)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
This PR adds basic support for connecting to servers requiring a client certificate, aka mTLS.
Some restrictions for now (all documented):
How to test?
I am planning on a PR against the pangolin repo too with similar contents, but first,
newt:)(This was tested only on macos so far)
Positive test
self-signed-certs-for-mtls.shdynamic_config.yamlby adding the followingalice-at-example-com.eng.12to your clientGet InfoTrustSSLtoAlways Trust--tls-client-cert=./certs/clients/alice-at-example-com.p12Negative test
--tls-client-cert=...arg.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.