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

    Programmatic User Certificate Registration

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 440 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.
    • D
      dlj3jf
      last edited by

      Dear forum,

      I need to register user certificates programmatically.

      The following documentation describes how to do this in the Web GUI: https://doc.pfsense.org/index.php/Certificate_Management ("Import an existing Certificate by pasting in the certificate and private key")

      For example, an acceptable solution involves scp-ing the public/private pair to the box, then ssh-ing and following up with a few commands to import.

      Alternately, if someone is aware of a good reference on PfSense administration via the command line, I would also be grateful.

      Many thanks in advance,

      dlj3jf

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

        There is no mechanism to do that automatically. You'd have to create a script to do it from scratch, using the certificate functions from /etc/inc/certs.inc and probably copying some code from the certificate management page.

        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.