Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Max SANs ?

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 3 Posters 584 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      the.loquitur
      last edited by

      I was trying to create a Server cert including an IP, FQDN & hostname for each of its 6 interfaces. So that's one Common Name and then 17 SANs, all told. The IP SANs are of type "IP Address". I created entries for the host/domain name in the DNS Resolver and checked that they can be resolved using DNS Lookup and pinged.

      However, Pf doesn't seem to like this, throwing the error

      DNS subjectAltName values must be valid hostnames, FQDNs or wildcard domains

      I've made some changes to protect myself online, but below are examples of the FQDNS, hostnames and IPs that I'm trying to include in the cert:

      mdf-lan-fir-p-1.thesimpsons.ourhome
      mdf-lan-fir-p-1
      20.10.0.1
      mdf-sin-fir-p-1.thesimpsons.ourhome
      mdf-sin-fir-p-1
      20.10.10.1
      mdf-sot-fir-p-1.thesimpsons.ourhome
      mdf-siotfir-p-1
      20.10.20.1
      mdf-usr-fir-p-1.thesimpsons.ourhome
      mdf-usr-fir-p-1
      20.10.30.1
      mdf-iot-fir-p-1.thesimpsons.ourhome
      mdf-iot-fir-p-1
      20.10.40.1
      mdf-gst-fir-p-1.thesimpsons.ourhome
      mdf-gst-fir-p-1
      192.168.100.1

      I looked online, and the max number of SANs is 100, give or take. Netgate's docs, don't specify.

      Suggestions here?

      johnpozJ 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You are just adding them in the cert manager?

        Does it accept them if you use fewer SANs?

        What pfSense version are you running?

        Steve

        T 1 Reply Last reply Reply Quote 0
        • T
          the.loquitur @stephenw10
          last edited by

          @stephenw10

          I'm running 2.7.2-RELEASE (amd64).

          And yes, I'm using the cert manager.

          I played around with this some more. The largest number of SANs that I can get it to take so far is 6.

          Once I go over 6, it goes into a confused state and won't allow me to create the cert until I go down to 3 SANs.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Hmm, interesting. Is that with any type of SAN? Only combinations?

            Let me try to replicate....

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              I can't replicate that, I can create a cert with any number of SANs. I stopped at 18:

              Multi-SAN-cert.jpg

              Do you have the recommended patches applied from the System Patches package? I'm not aware of anything that would apply to this though.

              Is your example list above something you are actually hitting this with?

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @the.loquitur
                last edited by

                @the-loquitur said in Max SANs ?:

                values must be valid hostnames

                mdf-lan-fir-p-1

                wouldn't be a valid fqdn

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  But it's a valid hostname.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    I was able to save this no problem:

                    Multi-SAN-cert-2.jpg

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      the.loquitur @stephenw10
                      last edited by the.loquitur

                      @stephenw10

                      Hi. I believe that I've found the use-case where it fails.

                      When I create a test CA where I don't bother to fill out the:

                      Country Code
                      State
                      City
                      Organization
                      Organization Unit

                      and only fill in the Descriptive Name and Common Name. Then it pukes.

                      I ended up creating 2 CAs: one with the RDNs and the other without. When I try to create a cert using the no-RDN CA, it fails. When I try to create a cert using the CA with RDNs, it works.

                      Initially, I was working with FreeRadius for the first time and created a CA for just to use for proof of concept, filling out the very least fields. Then I ran into this.

                      For me, this is deterministic.

                      BTW, the GUI form for creating a CA actually says that the RDN fields are optional.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Are you entering those values on the server cert if they are not auto filled by the CA?

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          the.loquitur @stephenw10
                          last edited by

                          @stephenw10

                          O. I don’t fill them out when creating the CA and then correspondingly, I don’t fill them out when creating a cert using the CA.

                          At this point, I’m all done with reporting this.

                          Thanks

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Hmm, still unable to replicate it here without any optional fields on the CA or cert:

                            Multi-SAN-cert-3.jpg

                            Do you have all the recommended patches applied?

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.