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

    Certificate invalid, according to Google Chrome.

    Scheduled Pinned Locked Moved ACME
    5 Posts 3 Posters 817 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.
    • KlausFK
      KlausF
      last edited by

      Hi,
      Hope someone are able to help. Installed ACME 0.6.8, and generated a key and a wildcard certificate. No problem.
      When I use it on pfSense https, Chrome claims it to be "not secure". The certificate chain is verifiable in chrome.
      I exported the certificate, and used SSLshopper to decode it. No problem - everything verifies nicely.
      Same problem reported using Internet explorer and Edge.
      The error is given as "DLG_FLAGS_SEC_CERT_CN_INVALID", which suggests a CommonName problem.
      When I inspect the certificate in Chrome, the "Subject Alternative Name" contain "mydomainname", and *."mydomainname", and the CN is "mydomainname".

      What am I missing here ?

      Thank you for any input and ideas.
      Regards
      Klaus

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @KlausF
        last edited by Gertjan

        @KlausF said in Certificate invalid, according to Google Chrome.:

        What am I missing here ?

        You missed the browser that actually works. Firefox ^^

        Here :

        d7200d0f-b48c-4a09-9d6c-2a09a2bfec20-image.png

        @KlausF said in Certificate invalid, according to Google Chrome.:

        What am I missing here ?

        The answer is hidden in here :

        contain "mydomainname", and *."mydomainname", and the CN is "mydomainname".

        So I suppose you know that the "mydomainname" must exist.
        And as such, domain names are extremely public. You can't hide yourself on the Internet ;)

        When you obtained the certificate from Letenscrypt, you have to 'use' it :

        ebdaf56c-6887-4e8d-a37c-0da648f42799-image.png

        as defined here :

        001971ce-3b59-4a33-bd92-f6485d6cff95-image.png

        Also, your host name and domain should be set up to the identical :

        e3b6d4f5-a17e-4a99-8a9d-be5d4e562f26-image.png

        In this case, my browser uses "pfsense.brit-hotel-fumel.net" which matches the cert obtained from the GUI :

        a8fd242c-603a-4e92-997a-187e83c1345c-image.png

        => My browser is happy.

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

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

          @KlausF said in Certificate invalid, according to Google Chrome.:

          When I inspect the certificate in Chrome, the "Subject Alternative Name" contain "mydomainname", and *."mydomainname", and the CN is "mydomainname".

          And what is the fqdn your actually trying to access with.. if your cn on your cert is pfsense.domain.tld and your access with domain.tld or ipaddress then yeah your browser will balk at you.. You need to access the site with what matches up with the cn and san..

          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
          • KlausFK
            KlausF
            last edited by

            Thank you. My bad. I used the local IP, and not the fqdn.

            It works.

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

              If you want to access via IP and not have your browser scream at you.. Just create your own certs using local CA you can create on pfsense. Then trust that..

              That is what I do.. So I can access pfsense with its fqdn sg4860.local.lan or its IP.. or even the old name I use to use pfsense.local.lan

              ownca.jpg

              And since created before they started changing the max life, mine are good for 10 years ;)

              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
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.