Skip to content

[Bug]: x509_v2 misses support for otherName #69900

Closed

Description

@lkubb

What happened?

Currently, the x509_v2 modules do not know how to deal with otherName definitions, e.g. in a subjectAltNames extension. This includes rendering of said values in read_certificate - the extension object is just str()'d.

This was intentionally left out during the initial implementation. I'd still like to treat this as a bug since it's a breaking change versus the previous modules and some basic support should go a long way:

  • Understand othername:1.2.3.4;UTF8:foobar definitions from OpenSSL. Limit it to UTF8 ASN1 types.
  • For more complex use cases, allow to specify raw DER values as hex/base64 that are passed through.
  • When rendering, at least try to decode the value as a UTF8STRING.

Type of salt install

Official deb

Major version

3006.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

ubuntu-24.04

salt --versions-report output

Current HEAD of 3006.x

Activity

  1. added
    bug
    on Jul 29, 2026
  2. dwoz commented on Oct 16, 2026

    @dwoz
    Contributor

    This was fixed in v3006.28 and v3007.15. If you can still reproduce it on either release, please comment and we'll reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions