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

    Possible bug in Cert manager

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    5 Posts 3 Posters 3.8k 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
      tmueko
      last edited by

      How to reproduce: Create Ca-Cert and Key on another Host. Use an organisation name with "&" like "My Company gmbH & Co. KG." :)

      Import this CA with key and try to generate a Client/Key- and Certificate and you get:

      The field 'Distinguished name Organization' contains invalid characters.
      
      1 Reply Last reply Reply Quote 0
      • L
        LostInIgnorance
        last edited by

        Yeah, I had discovered this last night when I was trying to create new certs on a customers site.  I found out it was attributed to the "." in the name.  I had used "MMJ Inc." (which had passed the setup on the CA page, yet didn't pass the Certificates page generation) and had to get rid of the "." to make pfsense use the certs.

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Last I knew that really was invalid. It's hard to find a definitive list on the web, but several places list the following as not valid in certificate parameters:

          < > ~ ! @ # $ % ^ / \ ( ) ? . , &
          

          If that is correct, then our validation code is right, and whatever you used to originally produce those was lacking proper standards-compliant validation.

          Though if you are on recent snapshots you can edit the field before making a certificate. Previously those fields were locked, and now they are no longer locked, just click in there and erase the bad character and then fill in whatever other info you want, and save.

          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!

          1 Reply Last reply Reply Quote 0
          • L
            LostInIgnorance
            last edited by

            I had done it from generating new certs from pfSense directly and had come to the same conclusion.  If I generated the CA (in pfSense) with a name of "MMJ Inc." it would pass the CA check, but not pass the Certificates page when it auto fills from the CA's information.  I would get an error when pfSense would try to generate the certificates.

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Was the CA made a long time ago? Looks like the input validation was tighened up back in June to where it should be.

              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!

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