Skip to content

CVS-190150_nginx_update_urllib3#4380

Open
ngrozae wants to merge 1 commit into
mainfrom
CVS-190150_nginx_update_urllib3
Open

CVS-190150_nginx_update_urllib3#4380
ngrozae wants to merge 1 commit into
mainfrom
CVS-190150_nginx_update_urllib3

Conversation

@ngrozae

@ngrozae ngrozae commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

🛠 Summary

CVS-190150 - nginx update for urllib3 > 2

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copilot AI review requested due to automatic review settings July 16, 2026 15:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the nginx mTLS auth helper script to generate a localhost server certificate that includes a Subject Alternative Name (SAN), addressing stricter hostname verification behavior (e.g., clients using urllib3 >= 2 that no longer rely on CN alone).

Changes:

  • Add SAN (DNS:localhost and IP:127.0.0.1) to the self-signed server certificate generated by openssl req -x509.
  • Improve compatibility with modern TLS client validation that requires SAN for hostname/IP matching.

echo "WARNING: For development and testing only. Please follow your organization security practices on handling and distribution of cryptography material."
echo "===================================================================================================================================================="
openssl req -x509 -nodes -days 1 -newkey rsa:4096 -keyout server.key -out server.pem -subj "/C=US/CN=localhost"
openssl req -x509 -nodes -days 1 -newkey rsa:4096 -keyout server.key -out server.pem -subj "/C=US/CN=localhost" -addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
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.

2 participants