Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-107289

IP address SubjectAlternativeName values throw an "invalid argument" error

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.7
    • rhel-9.6, rhel-10.0
    • sscg
    • None
    • sscg-3.0.0-10.el9
    • No
    • Moderate
    • rhel-stacks-web-servers
    • 25
    • 26
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      Run `sscg --subject-alt-name=IP:192.168.0.1` to create a certificate valid only for a system running at that IP address.

      What is the impact of this issue to you?

      The command invocation fails with:

      Invalid name constraint: permitted;DNS:localhost, permitted;IP:192.168.0.1, permitted;DNS:localhost
      ERROR: Invalid argument

      Please provide the package NVR for which the bug is seen:

      sscg-3.0.5-11.el10

      sscg-3.0.0-9.el10

      How reproducible is this bug?:

      Every time

      Steps to reproduce

      1.  sscg --subject-alt-name=IP:192.168.0.1
      2.  
      3.  

      Expected results

      An x509 certificate is created that is valid only for a server running at 192.168.0.1 and a CA certificate that is permitted to sign certificates for that IP address. (Verify with openssl x509 -in <cert> -text)

      Actual results

      Invalid name constraint: permitted;DNS:localhost, permitted;IP:192.168.0.1, permitted;DNS:localhost
      ERROR: Invalid argument

              sgallagh@redhat.com Stephen Gallagher
              sgallagh@redhat.com Stephen Gallagher
              Stephen Gallagher Stephen Gallagher
              Petr Dancak Petr Dancak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: