Skip to content

ApplicationUri get replaced when mismatch from the certificate #3233

@Siyuan-Xu-Wapice

Description

@Siyuan-Xu-Wapice

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

Hello,
The OPCF's stack replace the ApplicationUri with the value from Certificate.SubjectAlternativeName.Url if they don't match when calling CheckApplicationInstanceCertificate(). This behavour is the same with the Server type or the Client type ApplicationConfiguration.

Expected Behavior

Shouldn't it throw an error with StatusCode Bad_CertificateUriInvalid instead?

Steps To Reproduce

  1. A x509 Certificate with SubjectAlternativeName.Url = "urn:a_mismatch_uri_string"
  2. Configure the ApplicaionConfiguration.ApplicationUri = "urn:foobar:123"
  3. Call application.CheckApplicationInstanceCertificates().
  4. ApplicaitonUri were replaced and no error.

Environment

- OS:
- Environment:
- Runtime:
- Nuget Version:
- Component:
- Server:
- Client:

Anything else?

No response

Metadata

Metadata

Assignees

Labels

needs investigationquestionThe issue contains a question. After no activity the issue might be closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions