-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Add PQC certificate support for HTTPS #62866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Should we try to get this in for RC1? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for Post-Quantum Cryptography (PQC) certificates in HTTPS configuration by supporting ML-DSA and SLH-DSA signature algorithms alongside existing RSA and ECDSA support. The implementation includes both certificate loading functionality and comprehensive test coverage.
Key changes include:
- Added PQC certificate support in the certificate configuration loader with OID mappings for ML-DSA and SLH-DSA variants
- Replaced hardcoded test certificates with dynamic generation to support multiple signature algorithms
- Enhanced test coverage to validate PQC certificate loading with both encrypted and unencrypted keys
Reviewed Changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/Shared/TestCertificates/https-*.pem and https-*.key |
Removed hardcoded RSA and ECDSA test certificates to be replaced with dynamic generation |
src/Servers/Kestrel/Core/src/Internal/Certificates/CertificateConfigLoader.cs |
Added PQC algorithm support with OID mappings and import methods for ML-DSA and SLH-DSA |
src/Servers/Kestrel/Kestrel/test/KestrelConfigurationLoaderTests.cs |
Refactored tests to dynamically generate certificates for multiple algorithms including PQC variants |
} | ||
else | ||
{ | ||
// For all other algorithms, we generate the certificate and key dynamically, saving them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
Add PQC certificate support for HTTPS
Opening initially as a draft:
Note that, as of the time of writing, a Windows Insider Build (Canary) is required in order for the ML-DSA tests to pass.
Fixes #62030