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

    LDAPS connection without CA

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 3 Posters 1.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.
    • H
      heper @maxxer
      last edited by

      @maxxer just use pfsense to generate the cert and copy/paste the whole chain to you samba server

      maxxerM 1 Reply Last reply Reply Quote 0
      • maxxerM
        maxxer @heper
        last edited by

        @heper thanks, indeed that could work, but it's making the things from down up. I'd rather find a solution using my own certs/setup

        H 1 Reply Last reply Reply Quote 0
        • H
          heper @maxxer
          last edited by

          @maxxer well it's up to you if you want to make things more difficult then they have to be

          enjoy

          maxxerM 1 Reply Last reply Reply Quote 0
          • maxxerM
            maxxer @heper
            last edited by

            @heper I simply don't want to depend on pfSense to deploy a certificate in Samba or whatever other service

            H 1 Reply Last reply Reply Quote 0
            • H
              heper @maxxer
              last edited by

              @maxxer well that's up to you.

              you can setup a CA on any other device, that is not pfsense, to depend upon for your certificate chain then

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

                How can pfSense authenticate the server if it doesn't have a CA cert to authenticate it against?

                maxxerM 1 Reply Last reply Reply Quote 0
                • maxxerM
                  maxxer @stephenw10
                  last edited by

                  What puzzles me, I'm creating a CA following this guide, but pfSense says the cert created is not for a CA but for a simple cert.

                  The command is:

                  openssl req -x509 -new -nodes -key myCA.key -sha256 -days 1825 -out myCA.pem
                  
                  H 1 Reply Last reply Reply Quote 0
                  • H
                    heper @maxxer
                    last edited by

                    @maxxer you did import your created CA on your pfsense device right ?

                    maxxerM 1 Reply Last reply Reply Quote 0
                    • maxxerM
                      maxxer @heper
                      last edited by

                      @heper said in LDAPS connection without CA:

                      @maxxer you did import your created CA on your pfsense device right ?

                      Yes, when I import in pfSense CA it says:

                      The submitted certificate does not appear to be a Certificate Authority, import it on the Certificates tab instead.

                      H 1 Reply Last reply Reply Quote 0
                      • H
                        heper @maxxer
                        last edited by

                        @maxxer then you are doing something wrong ....

                        i followed ur guide to create the CA & copy/pasted it to one of my pfsense devices and it imported just fine.

                        it doesn't like the privatekey because pfsense doesn't seem to like encrypted privatekeys. (lose the -des3)

                        maxxerM 1 Reply Last reply Reply Quote 2
                        • maxxerM
                          maxxer @heper
                          last edited by

                          @heper thanks for testing. Shame on me, I was running the commands on macOS and not on Linux. Trying on the latter worked, indeed! Damn mac, how much wasted time on this!! Thanks again

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