• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 500 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 Offline
    dlj3jf
    last edited by May 17, 2018, 9:26 PM

    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
    • J Offline
      jimp Rebel Alliance Developer Netgate
      last edited by May 21, 2018, 3:04 PM

      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
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received