Skip to content

[Server] Include domains and applicationName in ServerCertificate for CreateSigningRequest Method with parameter regeneratePrivateKey = true#3263

Merged
marcschier merged 2 commits into
OPCFoundation:masterfrom
romanett:feat/FixCreateSigingRequest
Oct 22, 2025
Merged

[Server] Include domains and applicationName in ServerCertificate for CreateSigningRequest Method with parameter regeneratePrivateKey = true#3263
marcschier merged 2 commits into
OPCFoundation:masterfrom
romanett:feat/FixCreateSigingRequest

Conversation

@romanett

Copy link
Copy Markdown
Contributor

Proposed changes

This pull request updates the process for generating temporary application certificates to ensure that domain names from the existing certificate are preserved when regenerating the private key.

Related Issues

  • Bugfix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)
  • Test enhancement (non-breaking change to increase test coverage)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected, requires version increase of Nuget packages)
  • Documentation Update (if none of the other choices apply)

Checklistt

  • I have read the CONTRIBUTING doc.
  • I have signed the CLA.
  • I ran tests locally with my changes, all passed.
  • I fixed all failing tests in the CI pipelines.
  • I fixed all introduced issues with CodeQL and LGTM.
  • I have added tests that prove my fix is effective or that my feature works and increased code coverage.
  • I have added necessary documentation (if appropriate).
  • Any dependent changes have been merged and published in downstream modules.

Further comments

…gningRequestAsync with parameter regeneratePrivateKey = true

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 fixes a bug in the CreateSigningRequestMethod where domain names and application name were being lost when regenerating the private key for temporary application certificates.

  • Extract domain names from existing certificate before regeneration
  • Pass domain names to the certificate generation method
  • Include application name in the certificate builder

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread Libraries/Opc.Ua.Server/Configuration/ConfigurationNodeManager.cs Outdated
@codecov

codecov Bot commented Oct 13, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.63%. Comparing base (2bee7e1) to head (ce235ee).
⚠️ Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3263      +/-   ##
==========================================
- Coverage   57.74%   57.63%   -0.12%     
==========================================
  Files         365      365              
  Lines       79419    79421       +2     
  Branches    13865    13865              
==========================================
- Hits        45862    45774      -88     
- Misses      29310    29388      +78     
- Partials     4247     4259      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@romanett romanett self-assigned this Oct 14, 2025
@marcschier
marcschier merged commit 0efd9b2 into OPCFoundation:master Oct 22, 2025
99 of 101 checks passed
@romanett
romanett deleted the feat/FixCreateSigingRequest branch October 24, 2025 19:02
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.

3 participants