mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[PR #1073] [CLOSED] fix: disable CN in CSR for tlsserver and shortlived profiles #1130
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#1130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/certimate-go/certimate/pull/1073
Author: @ZeroClover
Created: 12/1/2025
Status: ❌ Closed
Base:
main← Head:fix/disable-cn-for-ip-certs📝 Commits (1)
91677b2fix: disable CN in CSR for tlsserver and shortlived profiles📊 Changes
2 files changed (+8 additions, -0 deletions)
View changed files
📝
cmd/intercmd.go(+4 -0)📝
internal/workflow/engine/executor_bizapply.go(+4 -0)📄 Description
Problem
Let's Encrypt rejects Certificate Signing Requests (CSR) that contain IP addresses in the Common Name (CN) field with the error:
While Let's Encrypt supports issuing certificates for IP addresses (with the IP in the SAN extension), the CN field cannot contain IP addresses according to their policy.
Root Cause
Although lego v4.28.1 includes the fix from go-acme/lego#2570 that added the
DisableCommonNameoption, this option must be explicitly set by the application. Certimate was not setting this option, causing IP addresses to be placed in the CN field.Solution
This PR automatically sets
DisableCommonName = truewhen using thetlsserverorshortlivedACME profiles:shortlivedprofileChanges
Modified two locations where the lego client is initialized:
internal/workflow/engine/executor_bizapply.go(main workflow executor)cmd/intercmd.go(multi-process certificate application command)Testing
References
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.