-
Notifications
You must be signed in to change notification settings - Fork 0
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
SSL: Add optional custom extension parsing. #1
base: develop
Are you sure you want to change the base?
Conversation
Description:This pull request adds functionality to NGINX for extracting a custom TLS extension during the TLS handshake and utilizing its value as a variable within the NGINX configuration ( Key Features:
Example:NGINX configuration ( http {
server {
listen 443 ssl;
server_name _;
ssl_certificate server.crt;
ssl_certificate_key server.key;
ssl_custom_extension 1000 custom_extension;
location / {
add_header X-tls-custom-extension $custom_extension;
root /usr/local/nginx/html/;
index index.html;
}
}
} Request with TLS Custom Extension (Type: 1000):
Response:
RFC Reference:This implementation adheres to the guidelines from RFC 8446 (TLS 1.3) to ensure the secure and optional use of custom TLS extensions. |
Since a2a513b, stream frames no longer need to be retransmitted after it was deleted. The frames which were retransmitted before, could be stream data frames sent prior to a RESET_STREAM. Such retransmissions are explicitly prohibited by RFC 9000, Section 19.4.
Add SSL command for extract TLS custom extension and use as variable in nginx.conf
then client send TLS request with extension , nginx parse value of extension into variable name then use variable in nginx config
Example:
nginx.conf
Request
Response