ACME Wildcard - Export Key Pair - Programmaticly?
Cheaha last edited by
Is there a way to programatically export the generated key pair? What I am trying to accomplish is to use pfSense to register and maintain a wildcard cert for a domain. It should work fine, but I want to use the generated (and renewed) cert on another server. So I need a way to setup a task that exports the key pair from pfSense so that I can load it on another server (all programatically, no web gui). For example if I wanted to import the key pair into an iDRAC controller I could use racadm command line utility to cause the iDRAC to import the key pair, but I need to be able to pull it from pfSense first.
Is there a way this can be done via a SSH terminal session or something? Thx.
Thanks in advance.
In the ACME general settings, check Write Certificates, and then have your script check in
/conf/acme/and copy them wherever you want. The script doesn't need to hook on an update, it could check the file modification time or use some other method. Calling it from cron once a day some time after the ACME update would be sufficient.