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

    Create certificate for all ldap users

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 894 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.
    • M
      makz
      last edited by

      Hello,

      I've a pfsense with a openvpn server, id like to link my ldap with the openvpn, but i have some requirements.

      Users should have a personal certificate (ok -> i create a certificate with the same CN).
      I need to push them a defined IP (ok -> CSC ifconfig)
      I need to export the user .exe (ok -> client export config)

      But i need to do that for ~300 users …

      All users are in a specific group in the ldap and have an attribute for the IP they need to have in the VPN

      What is the fastest way to achieve that ?

      Available API ? (planned for pfsense 3 i think) Custom script to call PHP functions / pages ? We hire a trainee ?

      I hope someone can help me on this one :)

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

        There is no automated way to accomplish that, you'd have to create the certificates individually. You could create the certificates using OpenSSL outside of pfSense, but to use the export package you'd still have to import them to pfSense.

        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.