Programmatic User Certificate Registration
dlj3jf last edited by
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,
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.