Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Special characters in certificate fields produce invalid certificate #84

Closed
sybereal opened this issue Mar 14, 2024 · 0 comments · Fixed by #87
Closed

UI: Special characters in certificate fields produce invalid certificate #84

sybereal opened this issue Mar 14, 2024 · 0 comments · Fixed by #87
Assignees
Labels
area/frontend kind/bug Something isn't working. The software does not behave as expected or specified. status/updated MDS Authority Portal Issue was updated since last Bi-weekly
Milestone

Comments

@sybereal
Copy link
Collaborator

Description - What happened? *

When a certificate field contains characters outside the alphanumeric ASCII range (and some others), the resulting certificate is invalid, as it uses invalid characters for the string encoding selected.

Expected Behavior *

Certificate generation uses UTF-8 strings to represent special characters.

Observed Behavior *

Certificate generation uses the extremely restrictive ASN.1 PrintableString for certificate fields, even when they contain characters not supported by it.

Steps to Reproduce

  1. Register or provide a new connector.
  2. Choose to generate a new certificate.
  3. Enter a string with special characters, such as German umlauts, into one of the certificate fields.

Context Information

No response

Relevant log output

Go crypto/x509:
Error parsing certificate: x509: invalid RDNSequence: invalid attribute value: invalid PrintableString

openssl asn1parse:
PRINTABLESTRING   :DRM Datenraum Mobilit�t GmbH

Screenshots

No response

@sybereal sybereal added the kind/bug Something isn't working. The software does not behave as expected or specified. label Mar 14, 2024
@sybereal sybereal self-assigned this Mar 14, 2024
@jridderbusch jridderbusch added this to the Release March 15 milestone Mar 14, 2024
@jridderbusch jridderbusch added the status/updated MDS Authority Portal Issue was updated since last Bi-weekly label Mar 14, 2024
@jridderbusch jridderbusch self-assigned this Mar 14, 2024
richardtreier pushed a commit that referenced this issue Nov 18, 2024
…#84)

Bumps [org.testcontainers:postgresql](https://github.com/testcontainers/testcontainers-java) from 1.18.1 to 1.18.2.
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- [Commits](testcontainers/testcontainers-java@1.18.1...1.18.2)

---
updated-dependencies:
- dependency-name: org.testcontainers:postgresql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Berthold <75306992+tmberthold@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend kind/bug Something isn't working. The software does not behave as expected or specified. status/updated MDS Authority Portal Issue was updated since last Bi-weekly
Projects
None yet
2 participants