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

ACME cert alternative names?

Scheduled Pinned Locked Moved ACME
10 Posts 4 Posters 2.2k 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.
  • L
    lifeboy
    last edited by Nov 19, 2020, 12:57 PM

    I can't figure out how to add alternative names to a certificate.

    I have added the name as a manual DNS in the domain SAN list, but it only generates the certificate for the primary name.

    26021cef-8ad6-4ec4-b1d7-f6a14c02b996-image.png

    We have 2 servers configured with CARP to failover. One is fw-1A, the other fw-1B and the carp address is fw. If I add individual certificates for those 2, then the CARP address fails, etc.

    How does one do that?

    1 Reply Last reply Reply Quote 0
    • L
      lifeboy
      last edited by Nov 19, 2020, 2:18 PM

      I have now used "webroot" for the alternative name and that does the trick.

      1 Reply Last reply Reply Quote 0
      • L
        lifeboy
        last edited by Nov 19, 2020, 2:23 PM

        However, there's still a problem with the failover server.

        The HA Sync transfered the CA for Letsencrypt to the fw-1B machine. If I try to issue a certificate for fw-1B though, the resultant certificate is issued for the wrong CA:

        Common Name (CN) fw-1B-5fb672ab7a39f
        Organisation (O) pfSense webConfigurator Self-Signed Certificate
        Organisational Unit (OU) <Not Part Of Certificate>
        Common Name (CN) fw-1B-5fb672ab7a39f
        Organisation (O) pfSense webConfigurator Self-Signed Certificate
        Organisational Unit (OU) <Not Part Of Certificate>

        There doesn't seem to be a way to set which CA to use for the new LE certificate?

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Nov 19, 2020, 2:50 PM

          I use acme in a limited sense - but you should be able to just use a wildcard cert vs doing stuff with sans... I was using wildcard when I had a few different hosts behind haproxy..

          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 1
          • L
            lifeboy
            last edited by Nov 19, 2020, 2:55 PM

            I really don't want to use wildcards, since the domain has other subdomains as well.

            G 1 Reply Last reply Nov 19, 2020, 3:54 PM Reply Quote 0
            • G
              Gertjan @lifeboy
              last edited by Nov 19, 2020, 3:54 PM

              @lifeboy said in ACME cert alternative names?:

              since the domain has other subdomains as well.

              Do not communicate 'your' certificate to the other (web) sub domain servers and you'll be fine.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              L 1 Reply Last reply Jun 2, 2021, 3:27 PM Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Nov 19, 2020, 3:55 PM

                Each entry in that list is a SAN

                It's even labeled Domain SAN list

                It's possible that acme.sh itself doesn't support multiple names with the DNS-Manual method, and input validation doesn't prevent it.

                I use multiple SAN entries with RFC 2136 style DNS updates and it works perfectly there.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                L 1 Reply Last reply Nov 19, 2020, 5:47 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by Nov 19, 2020, 3:55 PM

                  Yeah you could for sure use a wildcard in one instance, and just use specific certs in other instances

                  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
                  • L
                    lifeboy @jimp
                    last edited by Nov 19, 2020, 5:47 PM

                    @jimp Indeed, the SAN addition works now. However, I'm still hoping to figure out why my second server doesn't create correct certificates. I have now removed the certificates and CA, but I ran into the LE rate limiting, so I'll try again later.

                    1 Reply Last reply Reply Quote 0
                    • L
                      lifeboy @Gertjan
                      last edited by lifeboy Jun 2, 2021, 3:52 PM Jun 2, 2021, 3:27 PM

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received