Skip to content

req: adding support -addext "subjectAltName=..."#247

Open
lealem47 wants to merge 1 commit into
wolfSSL:mainfrom
lealem47:addext
Open

req: adding support -addext "subjectAltName=..."#247
lealem47 wants to merge 1 commit into
wolfSSL:mainfrom
lealem47:addext

Conversation

@lealem47

@lealem47 lealem47 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Adds support for openssl's req -addext flag to specify the subjectAltName (SAN) extension inline on the command line, instead of only via a -config file section.

This now works, mirroring openssl:

./wolfssl req -x509 -newkey rsa:2048 -keyout tls.key -out tls.crt -days 365 -nodes -subj "/CN=192.168.1.2" -addext "subjectAltName=IP:192.168.1.2"

This PR refactors wolfCLU_setAltNames to move some logic into the new wolfCLU_addAltName to avoid duplicate code

@lealem47 lealem47 self-assigned this Jun 8, 2026
Copilot AI review requested due to automatic review settings June 8, 2026 23:32

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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