[Solved] ACME Automations with automated login

Started by SimHat, October 13, 2023, 02:42:38 PM

Previous topic - Next topic
October 13, 2023, 02:42:38 PM Last Edit: October 13, 2023, 03:08:26 PM by SimHat
I'm trying to use ACME automations to copy certificates to other servers on the network.  Where would I find the key on OPNSense that I need to add to the servers ~/ssh/authorized_keys file to allow login?
I generated a key using ssh-keygen but when I try to use it I get the following.

Load key "/root/.ssh/id_rsa.pub": invalid format

Nevermind.  I realized I'm not a smart person.  You have to use /root/.ssh/id_rsa NOT the .pub file.

I use the cert key located here for the Acme SFTP automation: /var/etc/acme-client/sftp-config/

The publine is also shown in web gui but "light hidden" by light blue color button "Show Identity" left to the orange "Test Connection" button.
Found it also after this match so adding this as hint for future searches ... ;-)