Skip to content

Certificate auth - #66

Merged
ladeak merged 9 commits into
masterfrom
certificate-auth
Aug 15, 2026
Merged

Certificate auth#66
ladeak merged 9 commits into
masterfrom
certificate-auth

Conversation

@ladeak

@ladeak ladeak commented Aug 15, 2026

Copy link
Copy Markdown
Owner

#65

ladeak added 9 commits August 14, 2026 23:57
Added --clientCertificatePath and --clientCertificateKeyPath CLI options for mTLS. Updated HttpBehaviorBinder, SocketBehavior, and related classes to load and process client certificates from PEM files. Modified command factories and execution plan logic to propagate certificate parameters through all HTTP and perf flows. Updated HTTP handler to attach client certificates to outgoing requests.
#65
Centralized client certificate loading in LoadCertificate helper, supporting PEM/PFX and Windows PKCS#12. Updated usage in HttpBehaviorBinder and CHttpExt. Enhanced SocketsHandler to enable TLS 1.2/1.3. Added new test cert files and improved client cert tests. Removed unused Certificate package. Allowed extra Kestrel config and improved async usage.
Executor now loads PEM and PFX client certificates, using X509CertificateLoader for PFX and platform-specific logic for Windows. Test dependencies (xunit.runner.visualstudio, xunit.v3.mtp-v2, Microsoft.NET.Test.Sdk) are updated. PEM cert/key files are added to test output. Tests are updated to verify new cert variables, and a new integration test covers PEM client cert usage.
Added support for client certificate authentication via new metadata fields and updated native bindings. Improved HTTP syntax highlighting and restricted metadata value patterns. Updated .NET dependencies, removed Linux binaries, and cleaned up obsolete files.
Added enableColoring parameter to StringConsole for optional color output. Updated GetDiffAsync to use coloring. Fixed redundant condition and improved extension checking in LoadCertificate. Changed native module filename in extension.js. Updated CHttp.exe and CHttpExtension.node binaries.
Update target frameworks to include .NET 9.0 in CHttp and CHttpExtension projects. Add conditional compilation for certificate export: use ExportPkcs12 with Pkcs12ExportPbeParameters.Default for .NET 10.0+, and Export with X509ContentType.Pkcs12 for earlier versions. Bump Microsoft.JavaScript.NodeApi and Generator packages from 0.9.23 to 0.9.25.
@ladeak
ladeak merged commit b230208 into master Aug 15, 2026
2 checks passed
@ladeak
ladeak deleted the certificate-auth branch August 16, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant