Programmatic User Certificate Registration

  • Dear forum,

    I need to register user certificates programmatically.

    The following documentation describes how to do this in the Web GUI: ("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,


  • Rebel Alliance Developer Netgate

    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/ and probably copying some code from the certificate management page.

Log in to reply